Example #1
0
    // Use this for initialization
    void Start( )
    {
        m_netId = GetComponent <NetworkIdentity>();
        //if (!m_netId.hasAuthority)
        //{
        //    return;
        //}

        instance       = this;
        m_playerAction = GetComponent <IPlayerAction>();
        m_camera       = Camera.main.transform;
    }
Example #2
0
    // Use this for initialization
    void Start( )
    {
        m_netId = GetComponent<NetworkIdentity>();
        //if (!m_netId.hasAuthority)
        //{
        //    return;
        //}

        instance = this;
        m_playerAction = GetComponent<IPlayerAction>();
        m_camera = Camera.main.transform;
    }