예제 #1
0
    public override void setUp(ref List <UIRef> setting)
    {
        base.setUp(ref setting);
        var b = UIRef.Get <Image>(ref setting, "schoolTimer");

        if (b)
        {
            timerImage = b;
        }
    }
예제 #2
0
        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));
        }
예제 #3
0
    //----------------------------------------------------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);
        }
    }
예제 #4
0
    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;
        }
    }
예제 #5
0
 private void SetRef(UIRef mono)
 {
     m_component = mono;
 }