public override void Execute(Duality.GameObject inSource, object inParameter)
        {
            GameObject go = Scene.Current.FindGameObject("SkinnedProgressBar");

            if (go != null)
            {
                SkinnedProgressBar progress = go.GetComponent <SkinnedProgressBar>();
                progress.Value = ((progress.Value + IncreaseAmount) % 100);
            }
        }
        public override void Execute(Duality.GameObject inSource, object inParameter)
        {
            WidgetController controller = Scene.Current.FindComponent <WidgetController>();
            GameObject       grid       = Scene.Current.FindGameObject("SkinnedCommandGrid");

            if (grid != null && controller != null)
            {
                controller.FocusOn(grid.GetComponent <Widget>());
            }
        }
 public override void Execute(Duality.GameObject inSource, object inParameter)
 {
     inSource.FindAncestorWithComponent <Widget>().GetComponent <Widget>().Close();
 }
 public override void Execute(Duality.GameObject inSource, object inParameter)
 {
     inSource.FindAncestorWithComponent <Widget>().GetComponent <Widget>().Close();
     Scene.Current.FindComponent <WidgetController>().SetDialogWindow(null);
 }
Exemple #5
0
 public override void Execute(Duality.GameObject inSource, object inParameter)
 {
     DualityApp.Terminate();
 }