Beispiel #1
0
 void Awake()
 {
     inputState     = GetComponent <inputState> ();
     walkBehavior   = GetComponent <walk> ();
     animator       = GetComponent <Animator> ();
     collisionState = GetComponent <collisionState> ();
     duckBehavior   = GetComponent <duck> ();
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     Duck  = this;
     _anim = GetComponent <Animator>();
 }