[過去ログ] 【ゲームエンジン】Unityなんでも質問スレpart9 (1002レス)
上下前次1-新
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん
このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
577: 名前は開発中のものです。 [] 2023/02/12(日) 10:20:40.08 ID:NSnJX8S7(1) AAS
Assets\preyer.cs(23,42): error CS1001: Identifier expected
このエラーメッセージが出ていて、何となくプログラムのスペルミスみたいなことは分かるんですが、どこを直せばいいのか分かりません…………
これがプログラムです…よければお答えしてくれると幸いです
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class preyer : MonoBehaviour
{ public float speed = 1.0f;
// Start is called before the first frame update
void Start() }
// Update is called once per frame
void Update()
{
if (Input.GetKey(KeyCode.LeftArrow))
{
if (this.transform.position.x > -4)
this.transform.position += Vector3.left * speed * Time.deltaTime;
}
if (Input.GetKey(KeyCode.RightArrow))
{
if (this.transform.position.x < 4)
this.transform.position += Vector3.right * speed * Time.deltaTime;
上下前次1-新書関写板覧索設栞歴
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.031s