private void Start() { Screen.SetResolution(1, 1, false); QualitySettings.vSyncCount = 0; SetRenderers(false); crystals = FindObjectsOfType(typeof(Crystal)) as Crystal[]; foreach (var item in GameObject.FindGameObjectsWithTag("SolverVolume")) { volumes.Add(item.collider); } laser = GetComponent<Laser>(); StartCoroutine(Solve()); }
//public GameObject LaserCannon; //private GameObject PreviousLaserCannon; protected void Start() { ShieldObj = transform.Find("Dodecahedron shield").gameObject; ShipObj = transform.Find("Player ship").gameObject; LaserObj = transform.Find("PlayerLaser").gameObject; BeaconObj = transform.Find("Beacon").gameObject; laser = LaserObj.GetComponent<Laser>(); enabled = true; Direction = Vector3.zero; CurrentSpeed = 0F; IsPlayable = true; }
public override void NotifyHitByLaser(Laser source) { if (!ShieldActive || source.IgnoreShield) Destroy(); }
public virtual void NotifyHitByLaser(Laser source) { }
public override void NotifyHitByLaser(Laser source) { Debug.Log("Destroying " + gameObject.name); Destroy(); }
public override void NotifyHitByLaser(Laser source) { Activated = true; if (OnActivated != null) OnActivated(); }