} /* Awake() */ private void OnEnable() { // log UnityEngine.Debug.Log( "<color=Blue>Info: </color> ApollonActiveSeatEntityBehaviour.VisualOnlyController.OnEnable() : begin" ); // preliminary if ((this._parent = this.GetComponentInParent <ApollonActiveSeatEntityBehaviour>()) == null) { // log UnityEngine.Debug.LogError( "<color=Red>Error: </color> ApollonActiveSeatEntityBehaviour.VisualOnlyController.OnEnable() : failed to get parent/rigidbody reference ! Self disabling..." ); // disable this.gameObject.SetActive(false); this.enabled = false; // return return; } /* if() */ // move subject reference to current VIRTUAL motion platform this._parent.Subject.transform.parent = this._parent.VirtualMotionSystem.transform; // log UnityEngine.Debug.Log( "<color=Blue>Info: </color> ApollonActiveSeatEntityBehaviour.VisualOnlyController.OnEnable() : end" ); } /* OnEnable() */
} /* Awake() */ private void OnEnable() { // log UnityEngine.Debug.Log( "<color=Blue>Info: </color> ApollonActiveSeatEntityBehaviour.IdleController.OnEnable() : begin" ); // preliminary if ((this._parent = this.GetComponentInParent <ApollonActiveSeatEntityBehaviour>()) == null) { // log UnityEngine.Debug.LogError( "<color=Red>Error: </color> ApollonActiveSeatEntityBehaviour.IdleController.OnEnable() : failed to get parent/rigidbody reference ! Self disabling..." ); // disable this.gameObject.SetActive(false); this.enabled = false; // return return; } /* if() */ // log UnityEngine.Debug.Log( "<color=Blue>Info: </color> ApollonActiveSeatEntityBehaviour.IdleController.OnEnable() : end" ); } /* OnEnable() */