public void MovePlayer(PlayerPosition playerPosition) { GameObject player = players.Find(p => p.GetComponent <PlayerManager>().ID == playerPosition.Id); MoveController moveController = player.GetComponent <MoveController>(); moveController.CalculateMoveInGrid(playerPosition); }