FromFramework() public static method

public static FromFramework ( GameObject gameObject ) : GameObjectSerialized
gameObject GameObject
return GameObjectSerialized
Beispiel #1
0
 internal static void EnsureMapping()
 {
     if (!Serializer.HasMapping(typeof(GameObject), typeof(GameObjectSerialized)))
     {
         Serializer.AddMapping(typeof(GameObject), typeof(GameObjectSerialized), (obj) => { return((object)GameObjectSerialized.FromFramework((GameObject)obj)); }, (obj) => { return((object)GameObjectSerialized.ToFramework((GameObjectSerialized)obj)); });
     }
 }