 ;(remove-state! card-prefab :rotate?)
 (do-cards #(do
              (set-state! % :flipped? false)
-             (set-state! % :type :default)))
+             (set-state! % :type :robot)))
 
 (do-cards #(println (state %)))
 ;(set-state! card-prefab :flipped? false)

  (UnityEngine.Resources/Load name))

;(def cards-parent (UnityEngine.GameObject. "Cards"))
(def canvas (object-named "Canvas"))
(def card-prefab (resource "card"))

(child+ canvas
        (instantiate card-prefab (v3 -100 0 0)))
(child+ canvas
        (instantiate card-prefab (v3 100 0 0)))

(defn card [] (object-tagged "Card"))
(defn cards [] (objects-tagged "Card"))

(defn rand-card-face [] 
  (rand-nth card-faces))

;; (card-set-face-texture! (card) (rand-card-face))

;; (UnityEngine.Resources/Load "roboty-drogowe")
;; (UnityEngine.Resources/Load 
