Example #1
0
 public void SpawnAsDropFromPlayer(RelicPlayer relicPlayer)
 {
     SpawnRelicAtPosition(relicPlayer.transform.position);
     {
         AudioSource audio = GetComponent<AudioSource>();
         audio.Play();
     }
 }
Example #2
0
        public HoldingRelic BeHeldBy(RelicPlayer player)
        {
            Spawner.DespawnRelic();

            var holdingRelic = Instantiate(Spawner.HoldingRelicPrefab);
            holdingRelic.transform.SetParent(player.gameObject.transform, false);

            holdingRelic.Spawner = Spawner;

            return holdingRelic;
        }