 (defn rand-card-face [] 
   (rand-nth card-faces))
 
-;; (keyword (rand-card-face))
-
-(card-set-face-texture! (card) (rand-card-face))
+;; (card-set-face-texture! (card) (rand-card-face))
 
 ;; (UnityEngine.Resources/Load "roboty-drogowe")
 ;; (UnityEngine.Resources/Load 

  (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"))

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

(do-cards #(println (state %)))
;(set-state! card-prefab :flipped? false)
