Exemplo n.º 1
0
 protected override bool LoopCondition(ToolController owner, GameObject target)
 {
     if (healthComponent == null || target == null)
     {
         Debug.LogWarning("Nothing to repair");
         return(false);
     }
     return(healthComponent.CanRepair(owner.gameObject) && inventoryComponent.GetResource(RepairNaniteResource) >= NanitesPerCycle);
 }