Ejemplo n.º 1
0
 private void SetClass <T>(T cls, Type type)
 {
     if (type == BoundType)
     {
         boundCalculator = cls as BoundCalculator;
     }
     else if (type == CoroutineType)
     {
         coroutine = cls as Coroutine;
     }
     else if (type == MeshOperationType)
     {
         meshOperation = cls as MeshOperation;
     }
     else if (type == ObjectPoolType)
     {
         objectPool = cls as ObjectPool;
     }
     else if (type == VectorOperationType)
     {
         vectorOperation = cls as VectorOperation;
     }
 }