public override void Start() { var tp = new TimeProvider(); time = tp.WorldTime; // Initialization of the script. }
public override void Start() { var tp = new TimeProvider(); time = tp.WorldTime; page = Entity.Get <UIComponent>().Page; border = page.RootElement.FindVisualChildOfType <Border>(BlockName); ClockDisplay = border.FindVisualChildOfType <TextBlock>("TimeBlock"); DateDisplay = border.FindVisualChildOfType <TextBlock>("DateBlock"); TitleBlock = border.FindVisualChildOfType <TextBlock>("Title"); TitleBlock.Text = Title; // Initialization of the script. }
public override void Start() { var tp = new TimeProvider(); time = tp.WorldTime; page = Entity.Get <UIComponent>().Page; border = page.RootElement.FindVisualChildOfType <Border>(BlockName); ClockDisplay = border.FindVisualChildOfType <TextBlock>("TimeBlock"); BlurbDisplay = border.FindVisualChildOfType <TextBlock>("BlurbBlock"); TitleBlock = border.FindVisualChildOfType <TextBlock>("Title"); currentRotation = CameraGimble.Transform.Rotation; timer = -1; LoadSites(); // Initialization of the script. }