Ejemplo n.º 1
0
    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));
        }
    }
Ejemplo n.º 2
0
    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));
        }
    }