void Awake() { actionPointSystem = FindObjectOfType <PlayerController>().GetComponent <ActionPointSystem>(); actionPointSystem.ActionPointsUpdated += UpdateUI; actionPointObjects = new List <GameObject>(); }
void Awake() { actionPoints = GetComponent <ActionPointSystem>(); lifeSystem = GetComponent <LifeSystem>(); motor = GetComponent <CharacterMotor>(); vision = GetComponentInChildren <VisionSystem>(); combat = GetComponentInChildren <CombatSystem>(); motor.FinishedMoving += OnFinishedMOving; combat.CombatFinished += OnCombatFinished; }
void Awake() { characterMotor = GetComponent <CharacterMotor>(); playerMarker.SetActive(false); collider = tileChecker.GetComponent <BoxCollider>(); particleSystem = playerMarker.GetComponentInChildren <ParticleSystem>(); interactableObjects = FindObjectsOfType <MonoBehaviour>().OfType <IInteractable>(); playerController = GetComponent <PlayerController>(); actionPointSystem = GetComponent <ActionPointSystem>(); textMesh = MoveCost.GetComponent <TextMesh>(); path = new NavMeshPath(); //tileChecker.SetActive(false); }