Пример #1
0
                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);
                }
Пример #2
0
 public void OrderMining(ResourceParent targetResource)
 {
     mineObjective = targetResource;
     hasToMine     = true;
 }
Пример #3
0
 void MineResource(ResourceParent targetResource, bool waited)
 {
     /*int ja = */ targetResource.Mine(3, waited);
     hasToMine = false;
     StartCoroutine(WaitAndMine(waitTime));
 }