Пример #1
0
    private void Awake()
    {
        if (s_Instance == null)
        {
            s_Instance = this;
            DontDestroyOnLoad(this);
        }
        else if (this != s_Instance)
        {
            Destroy(gameObject);
        }

        SetupVR();
    }
Пример #2
0
	private void Awake ()
	{
		if (s_Instance == null)
		{
			s_Instance = this;
			DontDestroyOnLoad (this);
		}
		else if (this != s_Instance)
		{
			Destroy (gameObject);
		}

		SetupVR ();
	}