Exemplo n.º 1
0
    private void Start()
    {
        triggerScript = GetComponentInChildren <triggerAreaScript>();
        healthSystem  = GetComponentInChildren <EnemyRobotHealthSystem>();

        targetPosition     = new Vector2(patrolPoints[0].position.x, patrolPoints[0].position.y); //First Position of Enemy
        transform.position = patrolPoints[0].position;

        currentWaitTime = waitTimeOnPatrolPoint;
    }
Exemplo n.º 2
0
 private void Start()
 {
     patrolScript = GetComponentInParent <RobotPatrol>();
     anim         = GetComponentInParent <Animator>();
     healthSystem = GetComponent <EnemyRobotHealthSystem>();
 }