public void Configure(PickableType type, PickableSpawner pickableSpawner)
 {
     this.pickableSpawner = pickableSpawner;
     this.type            = type;
     ConfigureSprite();
 }
Beispiel #2
0
        private void SpawnPickable(PickableSpawner pickableSpawner)
        {
            GameObject pickable = pickableSpawner.Spawn(pickables[Random.Range(0, pickables.Length)]);

            pickable.transform.parent = pickableSpawner.transform;
        }