Gradual jump and started orb events
This commit is contained in:
parent
e874c23647
commit
b4e11ac33f
11 changed files with 1035 additions and 99 deletions
40
Assets/Scripts/Managers/GameManager.cs
Normal file
40
Assets/Scripts/Managers/GameManager.cs
Normal file
|
@ -0,0 +1,40 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using GometGames.Tools;
|
||||
using MyBox;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
[System.Serializable]
|
||||
public enum OrbTypes {
|
||||
Blue,
|
||||
Red,
|
||||
InvertedControls,
|
||||
HighGravity,
|
||||
LowGravity,
|
||||
InvertedGravity,
|
||||
DarkRoom,
|
||||
HighSpeed,
|
||||
LowSpeed
|
||||
};
|
||||
|
||||
public class GameManager : MonoBehaviour {
|
||||
|
||||
[SerializeField] GenericDictionary<OrbTypes, UnityEvent> orbEffects;
|
||||
[SerializeField] OrbTypes currentType;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start(){
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update(){
|
||||
|
||||
}
|
||||
|
||||
void ChangeEventCall(OrbTypes type) {
|
||||
currentType = type;
|
||||
orbEffects[currentType].Invoke();
|
||||
}
|
||||
}
|
11
Assets/Scripts/Managers/GameManager.cs.meta
Normal file
11
Assets/Scripts/Managers/GameManager.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0f92eb99eeecf254ab1db681d9f7d3e5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue