Beispiel #1
0
 void OnTriggerEnter(Collider col)
 {
     if (!col.isTrigger && col.tag != "Enemy" && col.tag != "Bullet" && col.tag != "Wall" && col.tag != "Trap")
     {
         //Debug.Log ("[DEBUG] Laser hit " + col.gameObject.name);
         WorldAIHandler ws = GameObject.FindGameObjectWithTag("GameController").GetComponent <WorldAIHandler> ();
         ws.AlertEnemies(transform.position);
     }
 }
Beispiel #2
0
 void Start()
 {
     worldAIHandler   = GameObject.FindObjectOfType <WorldAIHandler> ();
     originalLookTime = worldState.GetDetectionTime();
 }