// Canvas切り替え public void ChangeCanvas(ECanvasType canvasType, bool willDestroyActive = true) { if (willDestroyActive && activeCanvasList.Count > 0) { activeCanvasList.ForEach(canvas => Destroy(canvas)); } canvasList.ForEach(cc => { if (canvasType == cc.type) { activeCanvasList.Add(Instantiate(cc.prefCanvas)); } }); }
// Canvas切り替え public void ChangeCanvas(ECanvasType canvasType) { if (activeCanvas != null) { Destroy(activeCanvas); } canvasList.ForEach(cc => { if (canvasType == cc.type) { activeCanvas = Instantiate(cc.prefCanvas); } }); }