void Awake() { m_colliderControl = this.gameObject.GetComponent <CharacterColliderController>(); m_avatar = this.gameObject.GetComponent <EQBrowser.Avatar>(); m_charControl = this.gameObject.GetComponent <CharacterController>(); m_avatar.SetCurGroundHeight(this.gameObject.transform.position.y); if (m_colliderControl == null) { Debug.LogError(string.Format("Cannot find Character Collider Controller for {0}", this.gameObject.name)); } if (m_avatar == null) { Debug.LogError(string.Format("Cannot find Avatar for {0}", this.gameObject.name)); } }
void Awake() { m_colliderControl = this.gameObject.GetComponent<CharacterColliderController>(); m_avatar = this.gameObject.GetComponent<EQBrowser.Avatar>(); m_charControl = this.gameObject.GetComponent<CharacterController>(); m_avatar.SetCurGroundHeight(this.gameObject.transform.position.y); if (m_colliderControl == null) { Debug.LogError(string.Format("Cannot find Character Collider Controller for {0}", this.gameObject.name)); } if (m_avatar == null) { Debug.LogError(string.Format("Cannot find Avatar for {0}", this.gameObject.name)); } }