Projet-IA-Madelaine/Scripts/PlayerBehaviourScripts/HumanPlayerBehaviour.cs

25 lines
485 B
C#
Raw Normal View History

2024-06-12 21:03:42 +02:00
using UnityEngine;
public class HumanPlayerBehaviour : PlayerBehaviour
{
protected override sbyte ChooseDirection()
{
return Input.GetKey(KeyCode.Space) ? (sbyte)1 : (sbyte)-1;
}
protected override bool ChooseIfPlayerIsHuman()
{
return true;
}
protected override Color ChoosePlayerColor()
{
return new Color(255, 255, 255);
}
protected override string ChoosePlayerName()
{
return "Joueur Humain";
}
}