Exemplo n.º 1
0
 void Start()
 {
     EnergyHandler.AddEnergyObject(this);
     rb            = GetComponent <Rigidbody>();
     groundChecker = GetComponentInChildren <GroundChecker>();
     sM            = new PickGoatStateMachine(this);
     SendMessage("GetFSM", sM);
     audioSource = GetComponent <AudioSource>();
 }
Exemplo n.º 2
0
 private void GetFSM(PickGoatStateMachine fSM)
 {
     pSM = fSM;
     pSM.OnTransitionEvent += CatchStateChange;
 }