private void initOperationHandler()
 {
     foreach (Reflex r in reflexes)
     {
         if (r.operations != null)
         {
             foreach (Operation op in r.operations)
             {
                 PrivateOperation po = op as PrivateOperation;
                 if (po != null)
                 {
                     Operation.OperationHandler oh = behaviourTriggable.getOperationHandler(po.getType());
                     if (oh == null)
                     {
                         Debug.LogWarning("WARN: no OperationHandler with Operation.Type:" + po.getType() + ", have you set it?");
                     }
                     else
                     {
                         Debug.Log("setOperationHandler:" + oh);
                         po.setOperationHandler(oh);
                     }
                 }
             }
         }
     }
 }
Beispiel #2
0
 public void registerOperation(Operation.Type type, Operation.OperationHandler ch)
 {
     operations[(int)type] = ch;
 }