Exemplo n.º 1
0
 public void Unwrap()
 {
     if (Instance != null) //maybe the item isn't tied to a gameobject?
     {
         Instance.Destroy();
         _instance = null;
     }
 }
Exemplo n.º 2
0
    public static W GetWorldObject <W>(this GameObject gObj) where W : WorldObject
    {
        WOWrapper instance = gObj.GetComponent <WOWrapper>();

        return((W)instance.WO);
    }