Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        //PlayerPrefs.DeleteAll();
        if (!PlayerPrefs.HasKey("CurrentProfile"))
        {
            PlayerPrefs.SetInt("CurrentProfile", -1);
        }
        profileCamera = Camera.main.GetComponent <ProfileCamera>();
        crew          = new Profile.Avatar[3];

        profiles = new Profile[4];
        for (int i = 0; i < profiles.Length; i++)
        {
            profiles[i] = new Profile();
            profiles[i].LoadProfile(i);
//			float avatarOffset = 3;
            SetProfileBoard(i);
        }


        SkillDataBase.SetSkills();

        SetProfileBoardButtonActive(true);

        acceptButton.gameObject.SetActive(false);
    }
Esempio n. 2
0
 void Awake()
 {
     if (ProfileManager.currentProfile == null && PlayerPrefs.GetInt("CurrentProfile") != -1)
     {
         ProfileManager.currentProfile = new Profile();
         ProfileManager.currentProfile.LoadProfile(PlayerPrefs.GetInt("CurrentProfile"));
         SkillDataBase.SetSkills();
     }
 }