void SetupPlayer() { MainChar = false; crewController = FindObjectOfType <CrewController>(); moveController = FindObjectOfType <MoveController>(); anim = GetComponent <Animator>(); aIDestination = GetComponent <AIDestinationSetter>(); aiPath = GetComponent <AIPath>(); position = crewController.GetNextFreePosition(gameObject); Debug.Log("Player"); }