Objective-Cでは、メソッドを呼ぶときに各変数の名前を書かせるのを矯正されるが、
C#も同じような書き方ができた。
using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { void Start () { Hoge (intVal:1, stringVal:"Hoge"); } private void Hoge (int intVal, string stringVal) { Debug.Log (intVal); Debug.Log (stringVal); } }
intVal, stringValの名前を含めてメソッドをコールできるので、
どの引数がどのパラメータ化を可視化できる。