Пример #1
0
 void Start()
 {
     _detach    = GetComponent <CanBeDetached>();
     _highlight = GetComponent <CanBeHighlighted>();
     _interact  = GetComponent <CanBeInteractedWith>();
     _cost      = GetComponent <HasCost>();
 }
Пример #2
0
        void Awake()
        {
            _movementQueue = new CoroutineQueue();
            _rotationQueue = new CoroutineQueue();
            _movementQueue.Start();
            _rotationQueue.Start();

            _detached = GetComponent <CanBeDetached>();
        }