Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active January 22, 2021 08:44
Show Gist options
  • Save todorok1/de24803c98a483d437ba52a5988f895d to your computer and use it in GitHub Desktop.
Save todorok1/de24803c98a483d437ba52a5988f895d to your computer and use it in GitHub Desktop.
メンバ変数に接頭辞をつける
/// <Summary>
/// thisキーワードの確認を行うクラスです。
/// </Summary>
public class ThisTest : MonoBehaviour
{
public int m_fieldId;
public string m_fieldName;
/// <Summary>
/// 引数の値をフィールドにセットします。
/// </Summary>
public void SetFieldValue(int fieldId, string fieldName)
{
m_fieldId = fieldId;
m_fieldName = fieldName;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment