private void HeroesInput() { if (Input.GetButton("Quest1")) { player1.SetDestination(questMarker1.transform.position); } else { player1.SetDestination(LocationsManager.instance.GetPositionOf(LocationsEnum.Camp)); } if (Input.GetButton("Quest2")) { player2.SetDestination(questMarker2.transform.position); } else { player2.SetDestination(LocationsManager.instance.GetPositionOf(LocationsEnum.Camp)); } if (Input.GetButton("Quest3")) { player3.SetDestination(questMarker3.transform.position); } else { player3.SetDestination(LocationsManager.instance.GetPositionOf(LocationsEnum.Camp)); } }