Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (mPlayerInput.Shoot())
     {
         EnemySpawnManager.getInstance().killAllInvisibleEnemies();
     }
 }
Пример #2
0
 public bool destroyIfNotVisible()
 {
     if (!Player.getInstance().isObjectVisibleByPlayer(mCollider))
     {
         EnemySpawnManager.getInstance().removeEnemyFromMap(this);
         GameObject.Destroy(gameObject);
         return(true);
     }
     return(false);
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     EnemySpawnManager.getInstance().addWallBounds(GetComponent <Collider>().bounds);
 }