Пример #1
0
        //------------------------------------------------------------------------/
        // Messages
        //------------------------------------------------------------------------/
        private void Awake()
        {
            if (!root)
            {
                StratusDebug.LogErrorBreak("No root transform selected for sensing!", this);
                return;
            }

            this.interactEvent = new InteractEvent(this);
            this.scanTimer     = new StratusStopwatch(this.scanInterval);
            this.OnAwake();
        }
Пример #2
0
 //----------------------------------------------------------------------/
 // Methods
 //----------------------------------------------------------------------/
 /// <summary>
 /// Begins interpolation
 /// </summary>
 /// <param name="time"></param>
 public void Start(float time)
 {
     Timer   = new StratusStopwatch(time);
     _Active = true;
 }