Exemplo n.º 1
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;
        }
Exemplo 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;
        }