示例#1
0
 public static void Postfix()
 {
     context = CRand.get_state();
     CRand.set_state(ContextStack.stack.Pop());
     RandContextCounter.currentContextName = oldContext;
     oldContext = null;
     RandContextCounter.context_counter--;
 }
示例#2
0
 public static void Prefix()
 {
     ContextStack.stack.Push(CRand.get_state());
     CRand.set_state(context);
     oldContext = RandContextCounter.currentContextName;
     RandContextCounter.currentContextName = typeof(T);
     RandContextCounter.context_counter++;
 }
示例#3
0
 public static void postfix()
 {
     state_mine = CRand.get_state();
     CRand.set_state(state_old);
 }
示例#4
0
 public static void Prefix()
 {
     state_old = CRand.get_state();
     CRand.set_state(state_mine);
 }