// ***********************************************************************
// Assembly : Unity
// Author :
// Created :
// 代码规范
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
/*
namespace N
{
using System;
using UnityEngine;
///
/// Pascal 命名
///
public enum TestEnum
{
None,
}
[Flags]
public enum TestEnumF
{
None,
}
///
/// Pascal 命名
///
public delegate void Testdelegate();
///
/// 接口 I开头 Pascal 命名
///
public interface IInterface
{
void Test();
}
///
/// 类名 Pascal 命名
///
public class Example : MonoBehaviour, IInterface
{
public const int CONST_KEY = 0; //常量全部大写
public static event Testdelegate TestAction;// 静态公开变量 Pascal 命名
private static int _StaticInt = 0; // 静态私变量 下划线 _Pascal 命名
///
/// 静态变量 Pascal 命名
///
public static int StaticInt
{
get;
set;
}
///
/// 公开成员变量 camel 命名
///
public int publicField;
///
/// 私有成员变量 下划线 _camel 命名
///
private int _privateField;
///
/// ///
/// 属性 camel 命名
///
public int property
{
get;
set;
}
///
/// 方法 Pascal 命名
///
public void Method()
{
var tmp = 0;
if (tmp == 0)
{
}
switch (tmp)
{
case 0:
break;
default:
break;
}
}
///
/// 响应事件
///
internal void OnMouseEnter()
{
}
public void Test()
{
throw new NotImplementedException();
}
}
}
*/