public void OnCollisionEnter(Collision collision)
    {
        if (_bInAirtoLeap)
        {
            RaycastHit hitInfo;
            if (!_characterMotionObj.RayGroundInfo(out hitInfo))
            {
                return;
            }

            bool flag = _characterMotionObj.CanMoveByInk(ref hitInfo);
            Debug.Log("sssssssssssssssssss::" + hitInfo.transform.name + ",flag::" + flag);
            if (_sm && flag)
            {
                _sm.SetParameter("AvatarForm", (int)E_AvatarForm.INKFISHDIVE_STATE);
                PlayerStateChanged(E_AvatarForm.INKFISHDIVE_STATE);
                ChangeMeshRenderForm(AvatarForm);
            }

            _bInAirtoLeap = false;
        }
        else
        {
        }
    }
예제 #2
0
 void OnClick()
 {
     if (sm)
     {
         moveFlag = !moveFlag;
         sm.SetParameter("IsMove", moveFlag);
     }
 }
 void OnClick()
 {
     if (sm)
     {
         if (num == 1)
         {
             num = 2;
         }
         else
         {
             num = 1;
         }
         sm.SetParameter("AvatarForm", num);
         Debug.Log("avatarForm::" + num);
     }
 }