All Map + things

This commit is contained in:
Crizomb 2025-01-28 02:56:56 +01:00
parent 769264c79b
commit ee2a5fdf08
93 changed files with 5374 additions and 27 deletions

View file

@ -0,0 +1,31 @@
using System.Collections;
using UnityEngine;
public class GameManager : MonoBehaviourSingletonPersistent<GameManager>
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
// Delete, use only for Debug
if (Input.GetKeyDown(KeyCode.Space))
{
StartFightForAll();
}
}
public void StartFightForAll()
{
AbstractUnit[] units = FindObjectsByType<AbstractUnit>(FindObjectsSortMode.None);
foreach (var unit in units)
{
unit.StartFight();
}
}
}