Пример #1
0
    public SVA()
    {
        BaseValType bvt = new BaseValType();

        bvt.atk_rate = 123f;
        bvt.ss.Add(new Vector2(34f, 51f));
        bvt.lax = new int[] { 2, 5, 6, 5 };
        bvt.ppox.Add("eeex", 500);
        bvt.ppox.Add("ex", 5200);
        bvt.exx.Add("e1x", 1234);

/*
 *              EEXX ex=new EEXX();
 *              Type t= ex.GetType();
 *              MethodInfo mi= t.GetMethod("abc",BindingFlags.NonPublic | BindingFlags.Public);
 *              object[] objs=new object[]{100,100.5f};
 *              string str=(string)(mi.Invoke(ex,objs));*/

        //FieldInfo fi= t.GetField("def");
        //fi.SetValue(ex,100);
        //int value=(int)(fi.GetValue(ex));


        //ScriptInterpreter.GetValue(bvt,"ss[0]");
        //Debug.Log( (float)ScriptInterpreter.GetValue(bvt,"ss[0].x"));
        //	Debug.Log( (float)ScriptInterpreter.GetValue(bvt,"ss[0].y"));
        //Debug.Log( (int)ScriptInterpreter.GetValue(bvt,"lax[2]"));
        //ScriptInterpreter.GetValue(bvt,"ppox['eeex']");
        //ScriptInterpreter.GetValue(bvt,"exx['e1x']");

        //Debug.Log( ((float)ScriptInterpreter.GetValue(bvt,"ss[0]")).ToString());
    }
Пример #2
0
	public SVA()
	{
		BaseValType bvt=new BaseValType();
		bvt.atk_rate=123f;
		bvt.ss.Add(new Vector2(34f,51f));
		bvt.lax=new int[]{2,5,6,5};
		bvt.ppox.Add("eeex",500);
		bvt.ppox.Add("ex",5200);
		bvt.exx.Add("e1x",1234);
/*
		EEXX ex=new EEXX();
		Type t= ex.GetType();
		MethodInfo mi= t.GetMethod("abc",BindingFlags.NonPublic | BindingFlags.Public);
		object[] objs=new object[]{100,100.5f};
		string str=(string)(mi.Invoke(ex,objs));*/

		//FieldInfo fi= t.GetField("def");
		//fi.SetValue(ex,100);
		//int value=(int)(fi.GetValue(ex));

	
		//ScriptInterpreter.GetValue(bvt,"ss[0]");
		//Debug.Log( (float)ScriptInterpreter.GetValue(bvt,"ss[0].x"));
		//	Debug.Log( (float)ScriptInterpreter.GetValue(bvt,"ss[0].y"));
		//Debug.Log( (int)ScriptInterpreter.GetValue(bvt,"lax[2]"));
		//ScriptInterpreter.GetValue(bvt,"ppox['eeex']");
		//ScriptInterpreter.GetValue(bvt,"exx['e1x']");

		//Debug.Log( ((float)ScriptInterpreter.GetValue(bvt,"ss[0]")).ToString());

	}