Пример #1
0
 private void OnPickup()
 {
     try
     {
         ArtifactEffect.AddEffect();
         PlayerReference.AddArtifact(gameObject.GetComponent <Artifact>());
     }
     catch
     {
         Debug.Log(this.name + " has no artifact effect applied!!");
     }
     PlayerReference.pickUpEvent.RemoveAllListeners();
 }