public GameStateAssignment(GameContext context, Main.LayerName layer) : base(context, layer) { buttons = GetComponentsForLayer <GazeButton>(); assignmentElements = GetComponentForLayer <AssignmentElements>(); turtleTimeline = assignmentElements.TurtleTimeline; poemTimeline = assignmentElements.PoemTimeline; turtleMarkers = turtleTimeline.LabelMarkerTimes(); }
private bool ActivateButtonIfStillColliding() { bool stillStuck = activeCollisions > 0; if (stillStuck) { LabelMarker m = timeline.LabelMarkerTimes()["HelpAvailable"]; timeline.Seek(m); Debug.Log($"{this}: reactivating button"); ActivateButtonTimeout(); } return(stillStuck); }
public GameStateTurtleIntro(GameContext context) : base(context, Main.LayerName.TurtleIntro) { turtleTimeline = GetComponentForLayer <PlayableDirector>("TurtleIntroTimelineDirector"); turtleMarkers = turtleTimeline.LabelMarkerTimes(); turtleActivated = false; }