public void SpawnAsDropFromPlayer(RelicPlayer relicPlayer) { SpawnRelicAtPosition(relicPlayer.transform.position); { AudioSource audio = GetComponent<AudioSource>(); audio.Play(); } }
public HoldingRelic BeHeldBy(RelicPlayer player) { Spawner.DespawnRelic(); var holdingRelic = Instantiate(Spawner.HoldingRelicPrefab); holdingRelic.transform.SetParent(player.gameObject.transform, false); holdingRelic.Spawner = Spawner; return holdingRelic; }