Test
then the file name is Test.cs
)using
statementsnamespace
statementsClass
and Interface
declarationsprotected
, then public
, then private
protected
, then public
, then private
protected
, then public
, then private
protected
security flag as default, so they can be accessed and changed by scripts that derive of the other. virtual
keyword, so they can be overridden by other scripts. GameCreator.Core;
UnityEngine.UI;
class ActionHit;
class ConditionX;
interface IAction;
GetLetter();
UpdateHierarchy();
protected string name;
public int age;
Enum
suffix on Enum type names. When more than two values, it is recommended to write each value on its own line. enum State {On, Off};
enum World
{
Curved,
Round,
AroundTheCorner
}
EventActivation onActivate;
SingleSkillAttribute;
public string Name;
public int Age;
int age = 6;
Order order = new Order();
const int NumDaysInWeek = 4;
const int NUM_DAYS_IN_WEEK = 4