/// <summary>
 /// On Game Start Callback
 /// </summary>
 private void OnGameStart()
 {
     SetMoveLimmit();
     gameObject.SetActive(true);
     stateMachine.ChangeNextState(typeof(PlayerIdleState));
     health.ResetCurrentHealth(playerProperties.playerTotalHealth);
     OnHealthUpdate(PlayerProperties.playerTotalHealth);
     Invoke("SetFireState", 1);
 }
예제 #2
0
 /// <summary>
 /// Rest required properties on re spwaing
 /// </summary>
 public void OnObjectSpawn()
 {
     health.ResetCurrentHealth(enemyProperties.totalHealth);
 }