This commit is contained in:
mdecrai
2023-06-20 21:00:33 +02:00
parent ec4cda81e9
commit 772ebc64f0
130 changed files with 54030 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FleetManager : MonoBehaviour
{
public static int maxSpeed = 10000;
public List<Fleet> Fleets = new();
public Fleet selectedFleet;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void UpdateFleetsList()
{
for (int i = 0; i < Fleets.Count; i++)
{
if (Fleets[i] ==null || !Fleets[i].isActiveAndEnabled)
{
Fleets.Remove(Fleets[i]);
}
}
}
public void UpdateTravelTime()
{
foreach (Fleet g in Fleets)
{
g.Travel();
}
}
}