コード例 #1
0
 void Start()
 {
     /// Suscribete al estado muerte con la funcion spawndead.
     deadState.SuscribeOnStart(SpawnDead);
     moveState.SuscribeOnStart(StartMove);
     moveState.SuscribeOnJump(JumpMove);
     moveState.SuscribeOnEnd(EndMove);
     audioRun = GetComponent <AudioSource>();
 }
コード例 #2
0
 void Start()
 {
     volumeP = GetComponent <AudioSource>().volume;
     /// Suscribete al estado muerte con la funcion spawndead.
     deadState.SuscribeOnStart(SpawnDead);
     moveState.SuscribeOnStart(StartMove);
     moveState.SuscribeOnJump(JumpMove);
     moveState.SuscribeOnEnd(EndMove);
     crouchState.SuscribeOnStart(Crouching);
     throwState.SuscribeOnStart(Throwing);
     //        crushState.SetFunct(Crushing, CrouchingEND);
     throwState.SuscribeOnEnd(Throwing2);
 }