slimecing

a fighting game featuring slimes and swords
Log | Files | Refs | README

PlayBaldwin.cs (401B)


      1 using System.Collections;
      2 using System.Collections.Generic;
      3 using UnityEngine;
      4 
      5 public class PlayBaldwin : MonoBehaviour
      6 {
      7     private void OnTriggerEnter(Collider other)
      8     {
      9         if (other.CompareTag("Slime"))
     10         {
     11             if (AudioManager.getInstance() != null)
     12             {
     13                 AudioManager.getInstance().Find("baldwin").source.Play();
     14             }
     15         }
     16     }
     17 }