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; }
public void OnActionCompleted(U3dAction action) { sceneController.okToShoot = true; ufoFactory.releaseUFO(action.gameObject); }