public MoveableBox(GameObject gameObject) : base(gameObject)
        {

            transform = gameObject.Transform;
            animator = (Animator)GameObject.GetComponent("Animator");

        }
Exemple #2
0
 public Move(Animator animator, Transform transform)
 {
     this.animator = animator;
     this.transform = transform;
 }
Exemple #3
0
 public Idle(Animator animator, Transform transform)
 {
     this.transform = transform;
     this.animator = animator;
 }
Exemple #4
0
 public Player(GameObject gameObject) : base (gameObject)
 {
     animator = (Animator)GameObject.GetComponent("Animator");
     transform = gameObject.Transform;
 }
Exemple #5
0
 public Door(GameObject gameObject, string name) : base(gameObject)
 {
     this.Name = name;
     transform = gameObject.Transform;
     animator = (Animator)GameObject.GetComponent("Animator");
 }