Ejemplo n.º 1
0
        void Start()
        {
            Application.targetFrameRate = 60;

            if (ClearProgress)
            {
                ProgressManager.DeleteProgress();
            }

            BaseObjectFactory.SetVariants();
            PlayerModel = new Player();
            PlayerModel.Init(this);
            ProgressManager.LoadProgress(this);

            Player.Init(this);
            IapManager.Init(this);

            SpawnZonesAgragator.Init(this);
            Fauna.Init(this);

            StartCoroutine(AutoSave());

            Pathfinder.Scan();

#if FACEBOOK
            FbManager.Init();
#endif
#if UNITY_IOS
            GameCenterManager.Authenticate();
#endif
#if UNITY_ANDROID
            GooglePlayServicesController.Init();
#endif
        }
Ejemplo n.º 2
0
 private void InitPlayer()
 {
     player = Instantiate(playerPrefab);
     player.Init(rooms[0].transform.position);
 }