void Start() { FCore.EventKey1Down += OnKey1Down; FCore.EventKey1Up += OnKey1Up; _penObj = new GameObject("penRay"); penRay = _penObj.AddComponent <PenRay>(); }
void Start() { //设置屏幕为3D显示模式 // FCore.SetScreen3D(); FCore.EventKey0Down += OnKey0Down; FCore.EventKey0Up += OnKey0Up; FCore.EventKey1Down += OnKey0Down; FCore.EventKey1Up += OnKey0Up; _penObj = new GameObject("penRay"); tempPenRay = _penObj.AddComponent <PenRay>(); //通过3DUI物体找到挂在在上面的UIButton3D脚本。 // uibutton3d = FindObjectOfType<UIButton3D>(); camera2D = Monitor23DMode.instance.camera2D; }