Ejemplo n.º 1
0
    public bool[] atCap  = new bool[4];    //array of booleans if the respective stat is at cap

    public SpellcastStats ReturnCopy()
    {
        SpellcastStats copy = new SpellcastStats();

        copy.InitializeValues(stats [0], stats [1], stats [2], stats [3]);
        return(copy);
    }
Ejemplo n.º 2
0
    void Start()
    {
        myCombos [0] = new SpellCombo();
        myCombos [0].InitializeValues(0, 0);
        myCombos [1] = new SpellCombo();
        myCombos [1].InitializeValues(2, 1);
        myCombos [2] = new SpellCombo();
        myCombos [2].InitializeValues(1, 2);
        myCombos [3] = new SpellCombo();
        myCombos [3].InitializeValues(0, 4);

        stats = new SpellcastStats();
        stats.InitializeValues(3f, 3f, 3f, 3f);
    }
Ejemplo n.º 3
0
 void Awake()
 {
     if (!globalControl)
     {
         //Initialize globalcontrol
         globalControl = this;
         DontDestroyOnLoad(gameObject);
         //Initialize variables on game start
         coins = 0;
         stats = new SpellcastStats();
         stats.InitializeValues(1, 1, 1, 1);
         PauseScript.unlockedShapes   = new bool[] { true, false, false };
         PauseScript.unlockedElements = new bool[] { true, false, false, false, false, false };
     }
     else
     {
         Destroy(gameObject);
     }
 }