コード例 #1
0
ファイル: CanBeDragged.cs プロジェクト: W3SS/Carty
 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>();
        }