게임 플레이 UI 연결까지 진행된 소스
using UnityEngine;
using System;
using System.Collections.Generic;
public sealed class GameData
{
private static volatile GameData uniqueInstance;
private static object _lock = new System.Object();
private GameData() {}
public static GameData Instance
{
get
{
if (uniqueInstance == null)
{
lock (_lock)
{
if (uniqueInstance == null)
uniqueInstance = new GameData();
}
}
return uniqueInstance;
}
}
public float targetWidth = 0, targetHeight = 640f;
public GamePlayManager gamePlayManager;
}