Ejemplo n.º 1
0
 public Animator(GameObject gameObject) : base (gameObject)
 {
     animations = new Dictionary<string, Animation>();
     fps = 8;
     this.spriteRenderer = (SpriteRenderer)gameObject.GetComponent("SpriteRenderer");
 }
Ejemplo n.º 2
0
        public void LoadContent(ContentManager content)
        {
            spriterenderer = (SpriteRenderer)GameObject.GetComponent("SpriteRenderer");
            texture2D = content.Load<Texture2D>("CollisionTexture");

        }