Example #1
0
 void Awake()
 {
     myAnimator = GetComponent<Animator>();
     motor = GetComponent<BasicMotor>();
     myFSM = new BeeFSM(this);
 }
Example #2
0
 void Start()
 {
     motor = GetComponent<BasicMotor>();
     deathReport = ServiceLocator.getService<IDeathReporting>();
 }
 void Awake()
 {
     FSM = new FireBeetleFSM(this);
     motor = GetComponent<BasicMotor>();
 }