Ejemplo n.º 1
0
    void Awake()
    {
        if (_instance != null)
        {
            Destroy(this.gameObject);
            return;
        }

        Cursor.SetCursor(cursorsImage[0], Vector3.zero, CursorMode.ForceSoftware);

        _instance = this;
        _instance.Initialize();
        DontDestroyOnLoad(_instance.gameObject);
    }