public static Object getBlock(HGBlockType Type)
 {
     if (Type == HGBlockType.Mode_Flypee)
     {
         return(HGAssetBundleLoader.GetIns().GetBundle("prefabs").LoadAsset("Flypee_Prefab.prefab"));
     }
     else if (Type == HGBlockType.Mode_Start)
     {
         return(HGAssetBundleLoader.GetIns().GetBundle("prefabs").LoadAsset("Start_Prefab.prefab"));
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
    //-------------------

    public void UpdateMode(HGBlockType mode)
    {
        GameMode = mode;
    }