Exemple #1
0
 public static void Postfix()
 {
     context = CRand.get_state();
     CRand.set_state(ContextStack.stack.Pop());
     RandContextCounter.currentContextName = oldContext;
     oldContext = null;
     RandContextCounter.context_counter--;
 }
Exemple #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++;
 }
Exemple #3
0
 public static void postfix()
 {
     state_mine = CRand.get_state();
     CRand.set_state(state_old);
 }
Exemple #4
0
 public static void Prefix()
 {
     state_old = CRand.get_state();
     CRand.set_state(state_mine);
 }