//--------------------------------------------------------------------------------------------/ // Methods //--------------------------------------------------------------------------------------------/ private void CheckForPlayerController() { playerController = gameObject.GetComponent <StratusPlayerController>(); if (playerController) { this.hideFlags = HideFlags.HideInInspector; playerController.Add(this); } else { Trace.Script("Player controller not found"); this.hideFlags = HideFlags.None; } }
//--------------------------------------------------------------------------------------------/ // Messages //--------------------------------------------------------------------------------------------/ private void Awake() { playerController = gameObject.GetComponent <StratusPlayerController>(); OnAwake(); }