Example #1
0
        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());
        }
Example #2
0
        //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;
        }
Example #3
0
 public override void NotifyHitByLaser(Laser source)
 {
     if (!ShieldActive || source.IgnoreShield)
         Destroy();
 }
Example #4
0
 public virtual void NotifyHitByLaser(Laser source)
 {
 }
Example #5
0
 public override void NotifyHitByLaser(Laser source)
 {
     Debug.Log("Destroying " + gameObject.name);
     Destroy();
 }
Example #6
0
 public override void NotifyHitByLaser(Laser source)
 {
     Activated = true;
     if (OnActivated != null)
         OnActivated();
 }