OrbitalInputChangerSwitch.cs (434B)
1 using Slimecing.SOEventSystem.Events; 2 using UnityEngine; 3 4 namespace Slimecing.TestScripts 5 { 6 public class OrbitalInputChangerSwitch : MonoBehaviour 7 { 8 [SerializeField] private GameObjectEvent onCollisionEvent; 9 10 private void OnCollisionEnter(Collision other) 11 { 12 if (other.ColIsPlayer()) 13 { 14 onCollisionEvent.Raise(other.gameObject); 15 } 16 } 17 } 18 }