public void giveUp() { KBEngine.Avatar avatar = KBEngineApp.app.player() as KBEngine.Avatar; if (avatar != null) { avatar.cellCall("reqGiveUp"); } }
public void endRound() { if (state == 0) { return; } KBEngine.Avatar avatar = KBEngineApp.app.player() as KBEngine.Avatar; if (avatar != null) { avatar.cellCall("reqEndRound"); } }
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"); } }