24 lines
467 B
C#
24 lines
467 B
C#
using Obvious.Soap;
|
|
using UnityEngine;
|
|
|
|
public class InteractionObject : MonoBehaviour
|
|
{
|
|
public ScriptableEventNoParam OnTakeBoatEventNoParam;
|
|
|
|
public ScriptableEventGameObject OnEventGameObject;
|
|
|
|
public GameObject paramGameObject;
|
|
|
|
public void Interact()
|
|
{
|
|
if ((Object)(object)OnTakeBoatEventNoParam != null)
|
|
{
|
|
OnTakeBoatEventNoParam.Raise();
|
|
}
|
|
if ((Object)(object)OnEventGameObject != null)
|
|
{
|
|
OnEventGameObject.Raise(paramGameObject);
|
|
}
|
|
}
|
|
}
|