コード例 #1
0
ファイル: School.cs プロジェクト: janekx21/RobotAnimalTycoon
    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
ファイル: UIBase.cs プロジェクト: liupingping/UIUntFream
    //----------------------------------------------------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
ファイル: UIBase.cs プロジェクト: liupingping/UIUntFream
 private void SetRef(UIRef mono)
 {
     m_component = mono;
 }