merge projects and arrange script folders

This commit is contained in:
voffka81
2022-08-17 11:14:32 +03:00
parent beea2145cb
commit c0ea0addcb
35 changed files with 608 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
using Assets.Scripts.Actions;
using System.Collections.Generic;
using UnityEngine;
namespace Assets.Scripts.Buildings
{
public abstract class BaseCell : MonoBehaviour
{
public Dictionary<string, BaseAction> OptionsList;
protected BaseCell()
{
OptionsList = new Dictionary<string, BaseAction>();
}
protected abstract void BuildOptionsList();
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8087167db9f5271408218993b0473a69
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+17
View File
@@ -0,0 +1,17 @@
using Assets.Scripts.Actions;
namespace Assets.Scripts.Buildings
{
public class Burger : BaseCell
{
protected override void BuildOptionsList()
{
OptionsList.Add("Hamburgers - 83$", new Eat(null, 6, 1, 83));
OptionsList.Add("Cheesburger - 94$", new Eat(null, 6, 1, 94));
OptionsList.Add("Astro chicken - 131$", new Eat(null, 6, 1, 131));
OptionsList.Add("Fries - 68$", new Eat(null, 6, 1, 68));
OptionsList.Add("Shakes - 108$", new Eat(null, 6, 1, 108));
OptionsList.Add("Colas - 73$", new Eat(null, 6, 1, 73));
}
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 61bf941dbcbd36f48bdd8f30b1b6c1f0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+12
View File
@@ -0,0 +1,12 @@
using Assets.Scripts.Actions;
namespace Assets.Scripts.Buildings
{
public class House : BaseCell
{
protected override void BuildOptionsList()
{
OptionsList.Add("Rest", new Relax(null, 6, 1));
}
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1a4df4c0f11d1a043b36f4ea6a31e4d7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: