void OnDestory() { StopAllCoroutines(); hpBar = null; staminaBar = null; huntManager = null; }
/// <summary> /// Creates a new hunt with prey for the player to hunt with their ammunition. /// </summary> public void GenerateHunt() { if (Hunt != null) { return; } Hunt = new HuntManager(); }
void Awake() { huntManager = GameObject.Find("HuntManager").GetComponent <HuntManager>(); }