Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     //GetComponent
     Et = enemyTrigger.GetComponent <EnemySpawnTrigger>();
     It = itemTrigger.GetComponent <DropControl>();
     //random chest type
     if (Random.Range(0, 10) > itemChange)
     {
         itemTrigger.gameObject.SetActive(false);
         chestType = 2;
     }
     else
     {
         enemyTrigger.gameObject.SetActive(false);
         chestType = 1;
     }
 }
Esempio n. 2
0
 public void SpawnReward(EnemySpawnTrigger triggerReward)
 {
     triggerReward.StartSpawn();
 }