예제 #1
0
 void addToCollectableList(HawkCollectable collectable)
 {
     spawnedCollectables.Add(collectable);
 }
예제 #2
0
 void removeFromCollectableList(HawkCollectable collectable)
 {
     spawnedCollectables.Remove(collectable);
 }
예제 #3
0
        public void makeDebuff(HawkBrick brick)
        {
            HawkCollectable prefab = availableDeBuffs[Random.Range(0, availableDeBuffs.Count)];

            addToCollectableList(Instantiate(prefab, brick.transform.position, Quaternion.identity) as HawkCollectable);
        }