Beispiel #1
0
    private void OnEnable()
    {
        Cinematic.Switches currentCinematicSwitches = Cinematic.GetCurrentCinematicSwitches();
        if (null != currentCinematicSwitches)         // a cinematic is running
        {
            OnCinematicEvent(currentCinematicSwitches, CinematicEvent.CinematicEventType.starting);
        }

        EventManager.instance.AddListener <CinematicEvent>(OnCinematicEvent);
    }