static void Main(string[] args) { StaticTest2.Foo(); StaticTest2.Some(); StaticTest.Foo(); Console.ReadLine(); }
private void Awake() { if (ins != null) { Destroy(gameObject); return; } ins = this; }
void Update() { if (isChange == true) { x1++; } x2++; x3++; ins = this; { isChange = false; } Debug.Log(this + " >> " + x1 + ", " + x2 + ", " + x3 + ", " + ins.name); }