Exemplo n.º 1
0
    //void ServerEvent(ClientSyncEvent _event)
    //{

    //}

    public void Init()
    {
        m_CatObj.AddComponent <TurnCat>();
        m_GhostObj.AddComponent <TurnCat>();

        mCatAni   = m_CatObj.GetComponent <CatAnimatorController>();
        mGhostAni = m_GhostObj.GetComponent <GhostAnimatorController>();

        mAnimatorController = mCatAni;
    }
Exemplo n.º 2
0
 public void ChangeModel(PlayerControl.PlayerType _type)
 {
     Debug.Log("name=" + gameObject.name + "  type=" + _type.ToString());
     if (_type == PlayerControl.PlayerType.Cat)
     {
         m_CatObj.SetActive(true);
         m_GhostObj.SetActive(false);
         mAnimatorController = mCatAni;
     }
     else
     {
         m_CatObj.SetActive(false);
         m_GhostObj.SetActive(true);
         mAnimatorController = mGhostAni;
     }
 }