public void ButtonPushC() { //modeChange.save = true; modeChange.attacking = false; drower.GetComponent <UnitMove_sin>().enabled = true; Ui_unit.GetComponent <UnitMenu>().active = false; unitmenu.SetActive(false); modeChange.Changed(2); }
private IEnumerator modechange() { magicModeChange.Changed(modenum); yield return(new WaitForSeconds(10f)); switch (modenum) { case 1: modenum = 2; break; case 2: modenum = 1; break; } StartCoroutine("modechange"); }