AcademyRPG.Giant.TryGather C# (CSharp) Метод

TryGather() публичный Метод

public TryGather ( IResource resource ) : bool
resource IResource
Результат bool
        public bool TryGather(IResource resource)
        {
            if (resource.Type == ResourceType.Stone)
            {
                if (!this.hasGatheredResources)
                {
                    this.AttackPoints += 100;
                    this.hasGatheredResources = true;
                }
                return true;
            }
            return false;
        }
    }