Exemplo n.º 1
0
    void Awake()
    {
        if (instance == null)
        {
            DontDestroyOnLoad(this.gameObject);

            instance = this;

            restifizerManager = gameObject.GetComponent <Restifizer.RestifizerManager>();

            if (restifizerManager == null)
            {
                restifizerManager = gameObject.AddComponent <Restifizer.RestifizerManager>();
            }

            restifizerManager.baseUrl = baseUrl;
        }
        else
        {
            DestroyImmediate(this.gameObject);
        }
    }
Exemplo n.º 2
0
 void Start()
 {
     Instance = this;
 }
		void Start () {
			Instance = this;
		}