示例#1
0
    private void initMouse()
    {
        p_Cursor = new UICursor(this);
        p_Cursor.Enable();

        p_Pan = new UIPan(this, p_Cursor);
        addUI(p_Pan);
    }
示例#2
0
    private void Awake()
    {
        if (instance)
        {
            Destroy(this);
        }
        else
        {
            instance = this;
        }

        OrientationManager.onChangeUIOrientation += UpdateOrientation;
    }