private void OffGyroallback() { PlayerPrefs.SetInt("GUIDE3D", 3); MsgBase.MsgAdd <GameObject, MySkyInputEvent.DragState, Vector2, Vector2, Vector3>("EventDrag", EventDrag); MsgBase.MsgAdd <GameObject, MySkyInputEvent.ClickState, Vector2>("EventClick", OnClickPhoto); PhotoCameraObj = new GameObject(); PhotoCameraObj.name = "PhotoCameraObj1111111"; PhotoCameraObj.transform.SetParent(SCameraManager.currentCamera.gameObject.transform.parent.gameObject.transform); Royboj = Instantiate(Resources.Load("photo/Rotation")) as GameObject; Royboj.SetActive(false); Royboj.transform.SetParent(PhotoCameraObj.transform); Royboj.transform.localPosition = new Vector3(0, -2.5f, 6.22f); tutorialProcess2 = new TutorialProcess2(TutorialUIObj, TutorialUIObj2); FindConfig = MonoBehaviour.Instantiate(Resources.Load("photo/Find_config")) as GameObject; FindConfig.name = "FindConfig"; FindConfig.transform.SetParent(gameObject.transform); m_FindConfig = FindConfig.GetComponent <Find_Item_Config>(); m_PhotoConfigArray = new PhotoConfigArray(); TutorialItem tutorialItem = new TutorialItem(gameObject); tutorialItem.Init(20); MsgBase.SendMsg("OpenGyroController"); }
private void CreateFindConfig() { FindConfig = MonoBehaviour.Instantiate(Resources.Load("photo/Find_config")) as GameObject; FindConfig.name = "FindConfig"; FindConfig.transform.SetParent(PhotoRoot.transform); m_FindConfig = FindConfig.GetComponent <Find_Item_Config>(); }