Projet-IA-Madelaine/Scripts/PlayerBehaviourScripts/HumanPlayerBehaviour.cs
2024-06-12 21:03:42 +02:00

25 lines
485 B
C#

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";
}
}