LoginSignup
1
1

More than 5 years have passed since last update.

クラスと説明と使い方(更新中)

Posted at

クラスの使い方を書いていきます。

まず、簡単な引数と戻り値の話から
ほげほげ


using UnityEngine;
using System.Collections;

public class Class : MonoBehaviour {
    void Start () {
        int Num;
        Num = classTest (4,8);
        Debug.Log (Num);
    }

    int classTest(int a,int b){
        int input1 = a;
        int input2 = b;
        return input1*input2;
    }

}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1