예제 #1
0
    string mMapName;        //地图名
    public void Init(mTonBehaviour s)
    {
        btn_ok = (UIEventListener)s.get_object("btn_ok", "UIEventListener");

        mType = s.get_int("mType");

        mMapName = s.get_string("mMapName");
    }
    void InitFields()
    {
        mTonBehaviour mton = (mTonBehaviour)target;

        if (!string.IsNullOrEmpty(mton.mTemplate))
        {
            string szPath = Application.dataPath + "/mTon/Editor/Config/" + mton.mTemplate + ".txt";
            mFields.Clear();
            if (!File.Exists(szPath))
            {
                return;
            }
            string file = File.ReadAllText(szPath);
            mFields = mTonFieldInfo.Deserilize(file);
        }
    }
예제 #3
0
 public virtual void onserilizeRoot(mTonBehaviour mTon)
 {
 }
예제 #4
0
 GameObject mModel_0;                //1 v 1 模式
 public void Init(mTonBehaviour s)
 {
     mModel_0 = (GameObject)s.get_object("mModel_0", "GameObject");
 }
예제 #5
0
 public override void onserilizeRoot(mTonBehaviour mTon)
 {
     base.onserilizeRoot(mTon);
     Init(mTon);
     seriliszeFrame();
 }
예제 #6
0
 UIEventListener btn_login;          //登录按钮
 public void Init(mTonBehaviour s)
 {
     btn_login = (UIEventListener)s.get_object("btn_login", "UIEventListener");
 }
예제 #7
0
 public override void onserilizeRoot(mTonBehaviour mTon)
 {
     base.onserilizeRoot(mTon);
     Init(mTon);
     InitModel();
 }
예제 #8
0
    GameObject mGoLoginFrame;   //登录界面
    public void Init(mTonBehaviour s)
    {
        mUIRoot = (UIRoot)s.get_object("mUIRoot", "UIRoot");

        mGoLoginFrame = (GameObject)s.get_object("mGoLoginFrame", "GameObject");
    }