Gradual jump and started orb events

This commit is contained in:
Gerard Gascón 2023-02-27 16:15:11 +01:00
parent e874c23647
commit b4e11ac33f
11 changed files with 1035 additions and 99 deletions

View 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();
}
}