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>(); } }
public override void SearchReferences() { miner = GetComponent <Miner>(); searchingMine = GetComponent <SearchingMine>(); }