示例#1
0
    void Start()
    {
        audio = GetComponentInChildren <AudioSource>();
        resetMap();
        StaticVariables.ResetVariables();
        skyBoxIdx = StaticVariables.mapID;//PlayerPrefs.GetInt("CourseID");
        setCourse(StaticVariables.mapID);

        //PlayerPrefs.GetInt("PlayerID") + 2 * PlayerPrefs.GetInt("CarID");//TODO - modify this
        //PlayerPrefs.SetInt("Coins", 0);
        float hp, mp, atk, skillCD, speed, defense;

        /***** TODO - For debug *****/
        hp      = 100;
        mp      = 100;
        atk     = 100;
        skillCD = 1;
        speed   = 0;//speed = 120;
        defense = 100;
        StaticVariables.characterID = 3;
        /***** TODO - For debug *****/

        initCharacter(StaticVariables.mapID, StaticVariables.carID, StaticVariables.characterID, hp, mp, atk, defense, speed, skillCD, 0, true);

        initCharacter(StaticVariables.mapID, 2, 1, 100, 100, 100, 50, 150, 5, 1, false);
        initCharacter(StaticVariables.mapID, 3, 0, 100, 100, 100, 50, 150, 5, 2, false);


        //there are carinitDebug.Length cars; init them in time stop skill users' enemy lists
        initTimeStopskillUsers();
    }
示例#2
0
 public void ResetAll()
 {
     PlayerPrefs.DeleteAll();
     StaticVariables.ResetVariables();
     SceneManager.LoadScene("Level", LoadSceneMode.Single);
 }