Example #1
0
 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);
     }
 }
Example #2
0
    //-------------------

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