Exemplo n.º 1
0
    void Awake()
    {
        actionPointSystem = FindObjectOfType <PlayerController>().GetComponent <ActionPointSystem>();
        actionPointSystem.ActionPointsUpdated += UpdateUI;

        actionPointObjects = new List <GameObject>();
    }
Exemplo n.º 2
0
    void Awake()
    {
        actionPoints = GetComponent <ActionPointSystem>();
        lifeSystem   = GetComponent <LifeSystem>();
        motor        = GetComponent <CharacterMotor>();
        vision       = GetComponentInChildren <VisionSystem>();
        combat       = GetComponentInChildren <CombatSystem>();

        motor.FinishedMoving  += OnFinishedMOving;
        combat.CombatFinished += OnCombatFinished;
    }
Exemplo n.º 3
0
 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);
 }