public bool ShowAllowed(long stepId) { CheckUserForSpectatorEvent eventInstance = new CheckUserForSpectatorEvent(); EngineService.Engine.ScheduleEvent(eventInstance, EngineService.EntityStub); return(!eventInstance.UserIsSpectator); }
public bool ShowAllowed(long stepId) { CheckUserForSpectatorEvent eventInstance = new CheckUserForSpectatorEvent(); EngineService.Engine.ScheduleEvent(eventInstance, EngineService.EntityStub); return(!eventInstance.UserIsSpectator && base.GetComponent <BackhitDamageTutorialTrigger>().canShow); }