25 lines
485 B
C#
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";
|
||
|
}
|
||
|
}
|