コード例 #1
0
 void OnDestory()
 {
     StopAllCoroutines();
     hpBar       = null;
     staminaBar  = null;
     huntManager = null;
 }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
 void Awake()
 {
     huntManager = GameObject.Find("HuntManager").GetComponent <HuntManager>();
 }