Exemplo n.º 1
0
        // Start is called before the first frame update
        void Start()
        {
            if (_instance != null && _instance != this)
            {
                Destroy(gameObject);
            }
            else
            {
                _instance = this;
            }

            planeteView  = true;
            planeteSpeed = rotationSpeed;
        }
Exemplo n.º 2
0
        // Start is called before the first frame update
        void Start()
        {
            if (_instance != null && _instance != this)
            {
                Destroy(gameObject);
            }
            else
            {
                _instance = this;
            }

            planeteView  = true;
            planeteSpeed = rotationSpeed;

            levelCubes = FindObjectsOfType <LevelCube>();

            audioSource.clip = _AudioManager.instance.SelectPlanete;

            if (_CheckCurrentPlatform.platform == RuntimePlatform.Android || _CheckCurrentPlatform.platform == RuntimePlatform.IPhonePlayer)
            {
                isMobilePlatform = true;
            }
        }