Inheritance: MonoBehaviour
Example #1
0
	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 ();
	}
Example #2
0
 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();
 }