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