merge projects and arrange script folders
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8087167db9f5271408218993b0473a69
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 61bf941dbcbd36f48bdd8f30b1b6c1f0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a4df4c0f11d1a043b36f4ea6a31e4d7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user