Beispiel #1
0
 protected void Lose()
 {
     animator.enabled = false;
     SaveSettings.Save();
     Yuna.Lose();
     WorldController.StopMoving();
     gameManager.Restart(2.5f);
 }
Beispiel #2
0
 private void OnEnable()
 {
     character          = GetComponentInParent <Yuna>();
     characterTransform = character.transform;
     animator           = character.GetComponent <Animator>();
     cc          = character.GetComponent <CharacterController>();
     gameManager = FindObjectOfType <GameManage>();
 }