public void goalupdate(int level) { if (timer - zenkaiclear > saichouclear) { saichouclear = timer - zenkaiclear; /*ここにスクリーンショットを保存するコードを書いて!!*/ GameObject codemake = GameObject.Find("mapgenerator"); codemaker script = codemake.GetComponent <codemaker>(); int width = 0; if (level == 1) { width = 10; nannido = "easymode"; } if (level == 2) { width = 16; nannido = "normalmode"; } if (level == 3) { width = 24; nannido = "hardmode"; } code = script.codegenerate(width); } zenkaiclear = timer; }
public void addCode() { codeScript = GetComponent <codemaker>(); mapcodeList.Add(codeScript.codegenerate(difficulty)); foreach (var a in mapcodeList) { Debug.Log(a); } }