Esempio n. 1
0
        public void Init(IPA.Logging.Logger log)
        {
            Util.Logger.logger = log;
            Instance           = this;

            AvatarLoader = new AvatarLoader(CustomAvatarsPath, AvatarsLoaded);
            AvatarTailor = new AvatarTailor();
            _avatarUI    = new AvatarUI();

            FirstPersonEnabled = PlayerPrefs.HasKey(FirstPersonEnabledKey);
            //RotatePreviewEnabled = PlayerPrefs.HasKey(RotatePreviewEnabledKey);
            SceneManager.sceneLoaded += OnSceneLoaded;
        }
Esempio n. 2
0
        public void OnApplicationStart()
        {
            if (_init)
            {
                return;
            }
            _init = true;

            File.WriteAllText("CustomAvatarsPlugin-log.txt", string.Empty);

            AvatarLoader = new AvatarLoader(CustomAvatarsPath, AvatarsLoaded);
            AvatarTailor = new AvatarTailor();
            _avatarUI    = new AvatarUI();

            FirstPersonEnabled = PlayerPrefs.HasKey(FirstPersonEnabledKey);
            //RotatePreviewEnabled = PlayerPrefs.HasKey(RotatePreviewEnabledKey);
            SceneManager.sceneLoaded += SceneManagerOnSceneLoaded;
        }