Exemple #1
0
    void CreateCharacter <T>()
    {
        //UI: Which slot would you like to create them, keep in mind you will ovewrite the slot
        int characterNum = 0;
        //UI for 1,2,3
        Character ch;

        if (characterNum == 1)
        {
            Save1 c = new Save1();
            ch = c;
            editCharacter(c, characterNum);
        }
        else if (characterNum == 1)
        {
            Save2 c = new Save2();
            editCharacter(c, characterNum);
        }
        else if (characterNum == 2)
        {
            Save3 c = new Save3();
            editCharacter(c, characterNum);
        }
        else
        {
            print("Error: CustomCharCreator.cs: Invalid characterNum");
        }
    }
        //2

        /// <summary>
        ///
        /// </summary>
        public PlikDodaj()
        {
            S  += Dodawanie;
            S2 += Dodawanie2;
        }