public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (ResourceType.Length != 0) { hash ^= ResourceType.GetHashCode(); } if (ResourceParent.Length != 0) { hash ^= ResourceParent.GetHashCode(); } if (ResourceProject.Length != 0) { hash ^= ResourceProject.GetHashCode(); } hash ^= resourceOwners_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void OrderMining(ResourceParent targetResource) { mineObjective = targetResource; hasToMine = true; }
void MineResource(ResourceParent targetResource, bool waited) { /*int ja = */ targetResource.Mine(3, waited); hasToMine = false; StartCoroutine(WaitAndMine(waitTime)); }