27 lines
650 B
C#
27 lines
650 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
public class TechDatabase : MonoBehaviour
|
|
{
|
|
public List<TechGroup> techGroups;
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.A))
|
|
{
|
|
techGroups[0].technologies[0].StartResearching();
|
|
}
|
|
if (Input.GetKeyDown(KeyCode.S))
|
|
{
|
|
techGroups[1].technologies[0].StartResearching();
|
|
}
|
|
if (Input.GetKeyDown(KeyCode.Space))
|
|
{
|
|
TechEvents.TurnPassed();
|
|
}
|
|
}
|
|
}
|
|
[System.Serializable]
|
|
public class TechGroup
|
|
{
|
|
public List<Technology> technologies;
|
|
} |