private void initMouse() { p_Cursor = new UICursor(this); p_Cursor.Enable(); p_Pan = new UIPan(this, p_Cursor); addUI(p_Pan); }
private void Awake() { if (instance) { Destroy(this); } else { instance = this; } OrientationManager.onChangeUIOrientation += UpdateOrientation; }