private void humanGetsPoint() { if (humanPt >= humanPtMax) { humanPt = humanPtMax; titanPt = 0f; state = CheckPointState.Human; base.photonView.RPC("changeState", PhotonTargets.AllBuffered, (int)CheckPointState.Human); if (FengGameManagerMKII.Level.Map != "The City I") { Vector3 position = base.transform.position; Vector3 up = Vector3.up; Vector3 position2 = base.transform.position; supply = PhotonNetwork.Instantiate("aot_supply", position - up * (position2.y - GetHeight(base.transform.position)), base.transform.rotation, 0); } fengGame.PVPhumanScore += 2; fengGame.CheckPvPPoints(); if (HasTeamWon(CheckPointState.Human)) { fengGame.FinishGame(); } } else { humanPt += Time.deltaTime; } }
private void OnTriggerStay(Collider other) { if (!disable && other.gameObject.tag == "Player") { if (IN_GAME_MAIN_CAMERA.Gametype == GameType.Singleplayer) { fengGame.FinishGame(); disable = true; } else if (other.gameObject.GetComponent <HERO>().photonView.isMine) { fengGame.FinishRaceMulti(); disable = true; } } }