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