// 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; } }
public void SpawnReward(EnemySpawnTrigger triggerReward) { triggerReward.StartSpawn(); }