Exemplo n.º 1
0
        private void PreNextWayPoint()
        {
            float time = _nextWaypont.waitAtWaypoint;

            if (time != 0)
            {
                GameUtilities.WaitForMethod(time, NextWayPoint);
            }
            else
            {
                NextWayPoint();
            }
        }
Exemplo n.º 2
0
        public static void SetNewSelection(Selectable selectable, float wait = 0)
        {
            GameUtilities.StopTimer(WaitSetNewSelection);

            if (selectable != null)
            {
                _currentSelectable = selectable.gameObject;

                if (wait == 0)
                {
                    SetNewSelection();
                }
                else
                {
                    GameUtilities.WaitForMethod(wait, WaitSetNewSelection, TimeType.Unscaled);
                }
            }
        }
Exemplo n.º 3
0
 // Update is called once per frame
 private void OnNewFocus(GameObject newObj)
 {
     GameUtilities.WaitForMethod <GameObject>(0.01f, ChangeScroll, newObj, TimeType.Unscaled);
 }
Exemplo n.º 4
0
        protected override void OnEnableAfterStart()
        {
            base.OnEnableAfterStart();

            GameUtilities.WaitForMethod(0.1f, AddInput, TimeType.Unscaled);
        }
Exemplo n.º 5
0
        protected override void Start()
        {
            base.Start();

            GameUtilities.WaitForMethod <LayerFocus>(0.01f, OnChangeLayer, FocusManager.CurrentLayerFocus, TimeType.Unscaled);
        }