I’m trying to have my player model rotate towards the chosen position and face the destination… However, it only seems to happen the first time…
public void MovePlayer(GameObject location)
{
if (mainGame.turnPlayer.actionPoints == 0)
{
MessageList.Instance.AddMessage("Not Enough Action Points!");
}
else
{
Vector3 toFace = new Vector3(0f, location.transform.position.y, 0f);
playerModel.transform.rotation = Quaternion.LookRotation(toFace);
playerLoc = location;
playerBehaviour.moveRange.Clear();
MessageList.Instance.AddMessage("Player Moved...");
mainGame.turnPlayer.actionPoints -= 1;
}
}
I’m sure I’m missing something simple but I’m just sat here scratching my head over it…
Thank you in advance!