/// <summary> /// ボタンを押した際の処理 /// </summary> /// <param name="type"></param> private void ButtonPush(BType type) { if (type == BType.close) { Close(); } else if (type == BType.save) { Save(); } else { DebugCommand.DebugLog("挙動が設定されてません"); } }
/// <summary> /// ボタンを押した際の処理 /// </summary> /// <param name="type"></param> private void ButtonPush(BType type) { GameObject soundObj = Instantiate(sound); soundObj.GetComponent <SE>().SetClip(se[1]); if (type == BType.start) { StartPush(); player.PlayerState = TitlePlayer.State.DASH; } else if (type == BType.option) { OptionPush(); } else { DebugCommand.DebugLog("挙動が設定されてません"); } }