/// <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; }
/// <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; }