public void blowPlayer(HERO hero, Transform neck) { Vector3 vector = (new Vector3()) - ((neck.position + (baseT.forward * 50f)) - hero.transform.position); float num = 20f; if (IN_GAME_MAIN_CAMERA.gametype == GAMETYPE.SINGLE) { hero.blowAway((Vector3)((vector.normalized * num) + (Vector3.up * 1f))); } else if ((IN_GAME_MAIN_CAMERA.gametype == GAMETYPE.MULTIPLAYER) && PhotonNetwork.isMasterClient) { object[] parameters = new object[] { (Vector3)((vector.normalized * num) + (Vector3.up * 1f)) }; hero.photonView.RPC("blowAway", PhotonTargets.All, parameters); } }