Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created January 22, 2021 05:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
thisキーワードのサンプル
/// <Summary>
/// thisキーワードの確認を行うクラスです。
/// </Summary>
public class ThisTest : MonoBehaviour
{
public int fieldId;
public string fieldName;
/// <Summary>
/// 引数の値をフィールドにセットします。
/// </Summary>
public void SetFieldValue(int fieldId, string fieldName)
{
this.fieldId = fieldId;
this.fieldName = fieldName;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment