Exemplo n.º 1
0
        public static HandlesMatrix4x4Restorer  Get(Matrix4x4 matrix)
        {
            HandlesMatrix4x4Restorer restorer;

            if (HandlesMatrix4x4Restorer.cached.TryGetValue(matrix, out restorer) == false)
            {
                restorer = new HandlesMatrix4x4Restorer(matrix);

                HandlesMatrix4x4Restorer.cached.Add(matrix, restorer);
            }
            else
            {
                restorer.Set(matrix);
            }

            return(restorer);
        }
Exemplo n.º 2
0
 public static HandlesMatrix4x4Restorer  Get(bool condition, Matrix4x4 matrix)
 {
     return(condition ? HandlesMatrix4x4Restorer.Get(matrix) : null);
 }