public Element(ElementType type, int minCount, int maxCount, float decayRate){ this.type = type; this.minCount = minCount; this.maxCount = maxCount; this.decayRate = decayRate; this.elementGoal = GameObject.Find (this.type.ToString () + "Goals").GetComponent<ElementGoal> (); setupElementGoal (); }
public Element(ElementType type, int minCount, int maxCount, float decayRate) { this.type = type; this.minCount = minCount; this.maxCount = maxCount; this.decayRate = decayRate; this.elementGoal = GameObject.Find(this.type.ToString() + "Goals").GetComponent <ElementGoal> (); setupElementGoal(); }