//Add A Special Student void AddSpecialStudent() { SpecialStudent newStudent = specialStudentRNG.GenerateStudent(); this.specialStudentList.Add(newStudent); this.resources.AddSpecialStudent(newStudent); }
//Add A Special Student void AddSpecialStudent() { SpecialStudent newStudent = specialStudentRNG.GenerateStudent(); GameObject buttonCreation = Instantiate(specialStudentButton, specialStudentContentPanel); SpecialStudentButtonScript SSScript = buttonCreation.GetComponent <SpecialStudentButtonScript>(); SSScript.Setup(newStudent); this.specialStudentList.Add(newStudent); }
public Student CreateStudent(string studentType) { Student studentToReturn; switch (studentType) { case "special": studentToReturn = new SpecialStudent(1); break; default: case "normal": studentToReturn = new NormalStudent(2); break; } return(studentToReturn); }
public override void AddSpecialStudent(SpecialStudent obj) { specialStudents.Add(obj); ranking++; }
public virtual void AddSpecialStudent(SpecialStudent obj) { }
//Setup on instantiate public void Setup(SpecialStudent item) { buttonText.text = item.type + ": '" + item.name + "' | Scholarship Cost: " + item.cost.ToAbbreviatedString(); student = item; Debug.Log(item.name + " is available to purchase!"); }