private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }
// Start is called before the first frame update void Start() { ui = StageUIController.Instance; iconCount = 0; generateIcons = new Dictionary <float, string>() { { 1f, "C" }, { 2f, "L4" }, { 3f, "L3" }, { 4f, "L2" }, { 5f, "L1" }, { 6f, "C" }, { 7f, "R1" }, { 8f, "R2" }, { 9f, "R3" }, { 10f, "R4" }, }; generateTime = new List <float>(generateIcons.Keys); // Keyを配列に変換 }
private void Awake() { transform.position = new Vector2(GENERATION_POINT_X, GENERATION_POINT_Y); // センターに配置 ui = StageUIController.Instance; }
private void Start() { ui = StageUIController.Instance; }