예제 #1
0
파일: Miner.cs 프로젝트: Luciano94/IA
 public override void SearchReferences()
 {
     if (seachingMines == null)
     {
         seachingMines = GetComponent <SearchingMine>();
     }
     if (mining == null)
     {
         mining = GetComponent <Mining>();
     }
     if (depositing == null)
     {
         depositing = GetComponent <Depositing>();
     }
     if (moving == null)
     {
         moving = GetComponent <Moving>();
     }
     if (characterController == null)
     {
         characterController = GetComponent <CharacterController>();
     }
 }
예제 #2
0
파일: Mining.cs 프로젝트: Luciano94/IA
 public override void SearchReferences()
 {
     miner         = GetComponent <Miner>();
     searchingMine = GetComponent <SearchingMine>();
 }