Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?
@glaciesworkspace

Qiitaの使い方

More than 1 year has passed since last update.

MarkDownで書く

ここで説明してる。

プログラム技法やノウハウ以外は書かない

関係ない事書くと運営から限定共有化されます。利用規約を良く読みましょう。なのでテスト投稿とか雑記とかそういうのは 個人ブログでやれや という事なのでしょう。多分。

よく見るコードが貼られているアレってどうやんの?

  • まず貼りたいソースをクリップボードにコピー
  • 半角で`(バッククォート。「@」をShiftキー押しながら入力)を3回+言語指定
  • C#(cs), C++(cpp), css, html, xml, java, javascript, php, perl, python, ruby, sql など
  • 最後`を3回

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class transe_delta : MonoBehaviour {
    public float mvsp = 3;

    // Use this for initialization
    void Start () {
    }

    // Update is called once per frame
    void Update () {
        if (Input.GetKey(KeyCode.LeftArrow))
        {
            float ddt = Time.deltaTime * mvsp;
            transform.position += (new Vector3(-ddt, 0, 0));
        }
        if (Input.GetKey(KeyCode.RightArrow))
        {
            float ddt = Time.deltaTime * mvsp;
            transform.position += (new Vector3(ddt, 0, 0));
        }
        if (Input.GetKey(KeyCode.UpArrow))
        {
            float ddt = Time.deltaTime * mvsp;
            transform.position += (new Vector3(0, 0, ddt));
        }
        if (Input.GetKey(KeyCode.DownArrow))
        {
            float ddt = Time.deltaTime * mvsp;
            transform.position += (new Vector3(0, 0, -ddt));
        }
    }
}

色まで勝手につけて整形してくれる。

その他チップス

ここでもまとめている。

3
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
glaciesworkspace
Unityでゲーム作りたいです。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
3
Help us understand the problem. What is going on with this article?