コード例 #1
0
        public bool ShowAllowed(long stepId)
        {
            CheckUserForSpectatorEvent eventInstance = new CheckUserForSpectatorEvent();

            EngineService.Engine.ScheduleEvent(eventInstance, EngineService.EntityStub);
            return(!eventInstance.UserIsSpectator);
        }
コード例 #2
0
        public bool ShowAllowed(long stepId)
        {
            CheckUserForSpectatorEvent eventInstance = new CheckUserForSpectatorEvent();

            EngineService.Engine.ScheduleEvent(eventInstance, EngineService.EntityStub);
            return(!eventInstance.UserIsSpectator && base.GetComponent <BackhitDamageTutorialTrigger>().canShow);
        }