Пример #1
0
        private void PreNextWayPoint()
        {
            float time = _nextWaypont.waitAtWaypoint;

            if (time != 0)
            {
                GameUtilities.WaitForMethod(time, NextWayPoint);
            }
            else
            {
                NextWayPoint();
            }
        }
Пример #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);
                }
            }
        }
Пример #3
0
 // Update is called once per frame
 private void OnNewFocus(GameObject newObj)
 {
     GameUtilities.WaitForMethod <GameObject>(0.01f, ChangeScroll, newObj, TimeType.Unscaled);
 }
Пример #4
0
        protected override void OnEnableAfterStart()
        {
            base.OnEnableAfterStart();

            GameUtilities.WaitForMethod(0.1f, AddInput, TimeType.Unscaled);
        }
Пример #5
0
        protected override void Start()
        {
            base.Start();

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