Example #1
0
 public void giveUp()
 {
     KBEngine.Avatar avatar = KBEngineApp.app.player() as KBEngine.Avatar;
     if (avatar != null)
     {
         avatar.cellCall("reqGiveUp");
     }
 }
Example #2
0
 public void endRound()
 {
     if (state == 0)
     {
         return;
     }
     KBEngine.Avatar avatar = KBEngineApp.app.player() as KBEngine.Avatar;
     if (avatar != null)
     {
         avatar.cellCall("reqEndRound");
     }
 }
Example #3
0
    private void OnTriggerEnter(Collider other)
    {
        if (_keepAvatar == null)
        {
            return;
        }
        if (!_keepAvatar.isPlayer())
        {
            return;
        }

        bool isArrive = other.gameObject.CompareTag("portal");

        Debug.Log("碰撞触发 : " + other.gameObject.name);
        if (isArrive)
        {
            other.enabled = false;
            _keepAvatar.cellCall("reqArriveSuccess");
        }
    }