Пример #1
0
    void OnTriggerEnter(Collider other)
    {
        SceneController.GetInstance().onHittingUFO();
        ufoFactory.releaseUFO(this.gameObject);

        other.gameObject.GetComponent <SelfDestruct> ().t = 0f;
        bulletFactory.releaseBullet(other.gameObject);

        SceneController.GetInstance().okToShoot = true;
    }
Пример #2
0
 public void OnActionCompleted(U3dAction action)
 {
     sceneController.okToShoot = true;
     ufoFactory.releaseUFO(action.gameObject);
 }