コード例 #1
0
ファイル: DeliveryTask.cs プロジェクト: arctignite/RTS
 // Use this for initialization
 void Start()
 {
     routine   = GetComponent <WorkerRoutine>();
     stats     = GetComponent <WorkerStats>();
     anim      = GetComponent <WorkerAnimationManager>();
     path      = GetComponent <PathFinding>();
     inventory = GameObject.FindWithTag("GameManager").GetComponent <TotalInventory>();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     routine                = GetComponent <WorkerRoutine>();
     stats                  = GetComponent <WorkerStats>();
     anim                   = GetComponent <WorkerAnimationManager>();
     path                   = GetComponent <PathFinding>();
     taskInitiated          = false;
     constructionInProgress = false;
 }