Exemple #1
0
 private void Awake()
 {
     lineOfSightVisual = GetComponent <LineOfSightVisual>();
     lineofsight       = GetComponent <LineOfSight>();
     shooting1         = GetComponent <Shooting1>();
     chaseAI           = GetComponent <ChaseAI>();
 }
Exemple #2
0
 void Start()
 {
     player            = GameObject.FindGameObjectWithTag("Player").transform;
     baseCol           = GetComponentInParent <BoxCollider2D>();
     CurrFov           = Fov;
     CurrRange         = range;
     lineOfSightVisual = GetComponent <LineOfSightVisual>();
 }
Exemple #3
0
 // Use this for initialization
 void Awake ()
 {
     lineOfSightVisual = GetComponent<LineOfSightVisual>();
     lineofsight = GetComponent<LineOfSight>();
     shooting1 = GetComponent<Shooting1>();
 }