public override void setUp(ref List <UIRef> setting) { base.setUp(ref setting); var b = UIRef.Get <Image>(ref setting, "schoolTimer"); if (b) { timerImage = b; } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var translations = new Translations(); var namer = new QuestionNamer(); var manager = new BinaryManager(); var ui = new UIRef(); var logic = new MainLogic(ui, translations, namer, manager); Application.Run(new Main(logic)); }
//----------------------------------------------------IUIBase--------------------------------------------- public void setAssetObject(GameObject obj) { if (obj != null) { m_uiTrans = Object.Instantiate(obj).transform; m_uiTrans.gameObject.name = appInfo.appName; m_uiTrans.parent = UIManager.ins.UIRootTransform; m_uiTrans.localPosition = new Vector3(0, 0, 0); m_uiTrans.localRotation = Quaternion.identity; m_uiTrans.localScale = Vector3.one; UIRef uiRef = m_uiTrans.GetComponent <UIRef>(); SetRef(uiRef); } }
public override void setUp(ref List <UIRef> setting) { base.setUp(ref setting); var a = UIRef.Get <Button>(ref setting, "robotMakeButton"); if (a != null) { a.onClick.AddListener(makeARobotHere); button = a; } var b = UIRef.Get <Image>(ref setting, "robotMakingTimer"); if (b) { timerImage = b; } }
private void SetRef(UIRef mono) { m_component = mono; }