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