Beispiel #1
0
        public void Setup()
        {
            _unityEvent = new UnityEvent();

            _gameEvent = ScriptableObject.CreateInstance <GameEvent>();

            _gameEventListener            = new GameObject().AddComponent <GameEventListener>();
            _gameEventListener.soEvent    = _gameEvent;
            _gameEventListener.unityEvent = _unityEvent;
            _gameEventListener.OnEnable();
        }