void Awake() { cameraController = FindObjectOfType <ThirdPersonCameraController>(); movementController = FindObjectOfType <GabrielsMovementController>(); animatorController = FindObjectOfType <GabiesAnimationController>(); AudioManager.Instance.PlaySong(3, 0.2f); if (PlayerPrefs.GetInt("SaveHealth", 0) == 1) { Health = 100f; Stamina = 100f; PlayerPrefs.SetInt("SaveHealth", 0); } if (Time.timeScale == 0) { Time.timeScale = 1f; } if (gabie != null && gabie != this) { Destroy(gameObject); } else { gabie = this; } }
void OnTriggerEnter(Collider other) { if (other.tag == "DropRespawn") { player = GameObject.FindGameObjectWithTag("Player").GetComponentInParent <GabrielsSystemManager>(); player.TakeDamage(fallDamage); tempPosition.position = savedPos; } }
void Start() { player = GabrielsSystemManager.gabie; }
void Start() { stats = GetComponent <GabrielsSystemManager>(); }
public void Consume(GabrielsSystemManager stats) { throw new NotImplementedException(); }