void Start() { controller = (CharacterPathController)FindObjectOfType(typeof(CharacterPathController)); map = GetComponent <IndexToPrefab>(); ShowCurrentPrefab(); controller.SetCharacter(characterIndex); }
// Start is called before the first frame update void Start() { controller = (CharacterPathController)FindObjectOfType(typeof(CharacterPathController)); }