added tooltips

This commit is contained in:
Vladimir Koshevarov
2022-11-29 19:09:00 +02:00
parent 2167b43c29
commit 73f06d8754
33 changed files with 1264 additions and 250 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
using Assets.Scripts.Actions;
using Assets.Scripts.Actions.Interfaces;
using System.Collections.Generic;
using UnityEngine;
@@ -7,13 +7,13 @@ namespace Assets.Scripts.Buildings
public abstract class BaseCell : MonoBehaviour
{
protected string _name;
protected Dictionary<string, BaseAction> _optionsList;
protected List<IPlayerAction> _optionsList;
[SerializeField]
private ConversationController _conversationController;
// Start is called before the first frame update
void Start()
{
_optionsList = new Dictionary<string, BaseAction>();
_optionsList = new List<IPlayerAction>();
Initialize();
BuildOptionsList();
}
+7 -9
View File
@@ -1,6 +1,4 @@
using Assets.Scripts.Actions;
namespace Assets.Scripts.Buildings
namespace Assets.Scripts.Buildings
{
public class Burger : BaseCell
{
@@ -11,12 +9,12 @@ namespace Assets.Scripts.Buildings
protected override void BuildOptionsList()
{
_optionsList.Add("Hamburgers - 83$", new Eat(6, 10, 83));
_optionsList.Add("Cheesburger - 94$", new Eat(6, 1, 94));
_optionsList.Add("Astro chicken - 131$", new Eat(6, 1, 131));
_optionsList.Add("Fries - 68$", new Eat(6, 1, 68));
_optionsList.Add("Shakes - 108$", new Eat(6, 1, 108));
_optionsList.Add("Colas - 73$", new Eat(6, 1, 73));
//_optionsList.Add("Hamburgers - 83$", new Eat(6, 10, 83));
//_optionsList.Add("Cheesburger - 94$", new Eat(6, 1, 94));
//_optionsList.Add("Astro chicken - 131$", new Eat(6, 1, 131));
//_optionsList.Add("Fries - 68$", new Eat(6, 1, 68));
//_optionsList.Add("Shakes - 108$", new Eat(6, 1, 108));
//_optionsList.Add("Colas - 73$", new Eat(6, 1, 73));
}
}
+2 -2
View File
@@ -11,8 +11,8 @@ namespace Assets.Scripts.Buildings
protected override void BuildOptionsList()
{
_optionsList.Add("Hot Dog - 20$", new Eat(6, 15, 83));
_optionsList.Add("Colas - 10$", new Eat(6, 10, 73));
_optionsList.Add(new Eat("Hot Dog", 15, 20));
_optionsList.Add(new Eat("Cola", 10, 10));
}
}
+2 -4
View File
@@ -1,12 +1,10 @@
using Assets.Scripts.Actions;
namespace Assets.Scripts.Buildings
namespace Assets.Scripts.Buildings
{
public class House : BaseCell
{
protected override void BuildOptionsList()
{
_optionsList.Add("Rest", new Relax(6, 1));
//_optionsList.Add(new Relax("Rest", 6, 1));
}
protected override void Initialize()
+19
View File
@@ -0,0 +1,19 @@
using Assets.Scripts.Actions;
using Assets.Scripts.Actions.Interfaces;
namespace Assets.Scripts.Buildings
{
public class JobAgency : BaseCell
{
protected override void Initialize()
{
_name = "Job Agency";
}
protected override void BuildOptionsList()
{
_optionsList.Add(new JobPosition("Hot Dogs sailer ", 20, JobId.HotDogs));
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 16925e4f4154a004dadcfa7300af1bbe
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: