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

        }