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;
        }
    }