/// <summary>
        /// Assigning references
        /// </summary>
        protected virtual void InitializePlayerComponents()
        {
            // Add all components to manage
            life = GetComponent<Life>();
            parkour = GetComponent<Parkour>();
            archery = GetComponent<Archery>();

            // Tell all components this is their controller
            life.Controller = this;
            parkour.Controller = this;
            archery.Controller = this;
        }
Esempio n. 2
0
        /// <summary>
        /// Assigning references
        /// </summary>
        protected virtual void InitializePlayerComponents()
        {
            // Add all components to manage
            life    = GetComponent <Life>();
            parkour = GetComponent <Parkour>();
            archery = GetComponent <Archery>();

            // Tell all components this is their controller
            life.Controller    = this;
            parkour.Controller = this;
            archery.Controller = this;
        }