Example #1
0
 /// <summary>
 /// Read in data. Disable game object near Bestiary area. Update unlocks.
 /// </summary>
 private void OnEnable()
 {
     ReadBestiaryFile();
     unlockData = FindObjectOfType <BestiaryUnlockData>();
     UpdateUnlocks();
     GetEnemyData();
     GenerateContent();
     armadaYRotation = armadaPreviewGO.transform.rotation.eulerAngles.y;
     armadaPreviewGO.SetActive(false);
     scrollbar.value = 1;
 }
Example #2
0
        // Find IridiumSystem.
        private void Start()
        {
            iridiumSystem      = FindObjectOfType <IridiumSystem>();
            BestiaryUnlockData = FindObjectOfType <BestiaryUnlockData>();

            //int shopIndex = Random.Range(3, clips.Length);
            ////ASSUMES FIRST VISIT TO THE SHOP
            //if (iridiumSystem.GetIridiumAmount() < 0)
            //{
            //    zenaSource.PlayOneShot(clips[2]);
            //}

            ////ASSUMES SUBSEQUENT VISIT TO SHOP
            ////NEED TO ADD RANDOM RANGE CHOOSER
            //else if (iridiumSystem.GetIridiumAmount() > 0)
            //{
            //    zenaSource.PlayOneShot(clips[shopIndex]);
            //}
        }