Ejemplo n.º 1
0
    //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);
    }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public override void AddSpecialStudent(SpecialStudent obj)
 {
     specialStudents.Add(obj);
     ranking++;
 }
Ejemplo n.º 5
0
 public virtual void AddSpecialStudent(SpecialStudent obj)
 {
 }
Ejemplo n.º 6
0
 //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!");
 }