【ゲームエンジン】Unityなんでも質問スレpart9at GAMEDEV
【ゲームエンジン】Unityなんでも質問スレpart9 - 暇つぶし2ch587:名前は開発中のものです。
23/02/12 10:20:40.08 NSnJX8S7.net
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を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch