Add script to load Hole in One
This is hopefully not the peak of my programming skills
This commit is contained in:
parent
a4abebf6d5
commit
0ecf17ec3e
8
Assets/Scripts/Games/HoleInOne.meta
Normal file
8
Assets/Scripts/Games/HoleInOne.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bd9a9ab1be963f649b45803fbdff5de1
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
34
Assets/Scripts/Games/HoleInOne/HoleInOne.cs
Normal file
34
Assets/Scripts/Games/HoleInOne/HoleInOne.cs
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
using HeavenStudio.Util;
|
||||||
|
using HeavenStudio.InputSystem;
|
||||||
|
|
||||||
|
using Jukebox;
|
||||||
|
|
||||||
|
namespace HeavenStudio.Games.Loaders
|
||||||
|
{
|
||||||
|
using static Minigames;
|
||||||
|
public static class RvlGolfLoader
|
||||||
|
{
|
||||||
|
public static Minigame AddGame(EventCaller eventCaller)
|
||||||
|
{
|
||||||
|
return new Minigame("holeInOne", "Hole in One", "6ab99e", false, false, new List<GameAction>()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace HeavenStudio.Games
|
||||||
|
{
|
||||||
|
/// This class handles the minigame logic.
|
||||||
|
/// Minigame inherits directly from MonoBehaviour, and adds Heaven Studio specific methods to override.
|
||||||
|
public class HoleInOne : Minigame
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Scripts/Games/HoleInOne/HoleInOne.cs.meta
Normal file
11
Assets/Scripts/Games/HoleInOne/HoleInOne.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bbf9f4378f696e54199e67826811b1a6
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -222,6 +222,17 @@ namespace HeavenStudio
|
||||||
Debug.LogWarning("Game loader NtrGleeClubLoader failed!");
|
Debug.LogWarning("Game loader NtrGleeClubLoader failed!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Debug.Log("Running game loader RvlGolfLoader");
|
||||||
|
game = RvlGolfLoader.AddGame(eventCaller);
|
||||||
|
if (game != null)
|
||||||
|
{
|
||||||
|
eventCaller.minigames.Add(game.name, game);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogWarning("Game loader RvlGolfLoader failed!");
|
||||||
|
}
|
||||||
|
|
||||||
Debug.Log("Running game loader RvlNewKarateLoader");
|
Debug.Log("Running game loader RvlNewKarateLoader");
|
||||||
game = RvlNewKarateLoader.AddGame(eventCaller);
|
game = RvlNewKarateLoader.AddGame(eventCaller);
|
||||||
if (game != null)
|
if (game != null)
|
||||||
|
|
Loading…
Reference in a new issue