void Awake() { preFactory = CSPrefabFactory.Instance(); AddMazeGrid(); _lblRow.value = "1"; _lblCol.value = "1"; }
public static CSPrefabFactory Instance() { if (_instance == null) { _instance = new CSPrefabFactory(); } return(_instance); }
private void CreateAllBlock(int count) { for (int i = 0; i < count && i < lstBlock.Count; i++) { lstBlock[i].SetShow(true); } preFactory = CSPrefabFactory.Instance(); for (int i = lstBlock.Count; i < count; i++) { SCRBlock scr = CreateOneBlock(i); lstBlock.Add(scr); } for (int i = count; i < lstBlock.Count; i++) { lstBlock[i].SetShow(false); } }
void Awake() { preFactory = CSPrefabFactory.Instance(); AddChild(); }