public static void GestureHandler(UnturnedPlayer player, PlayerGesture gesture) { if (gesture == PlayerGesture.SurrenderStart) { player.GodMode = true; } else { player.GodMode = false; } }
public void GestureAction(PlayerGesture gesture) { var currentRef = this.gameController.CurrentGesture; if (currentRef != null && this.CurrentGesture != null && gesture == currentRef.gesture && !this.CurrentGesture.isCorrect) { // Do Damage this.CurrentGesture.isCorrect = true; this.gameController.TakeDamage(UnityEngine.Random.Range(5, 10)); this.character.TriggerAttack(); } }
void GestureAction(PlayerGesture gesture) { this.gameController.players[this.playerIndex].GestureAction(gesture); }
public GestureRef(float startTime, float endTime) { this.startTime = startTime; this.endTime = endTime; this.gesture = RandomGesture(); }