Add quest manager and base quest class
This commit is contained in:
47
Assets/Scripts/QuestManager.cs
Normal file
47
Assets/Scripts/QuestManager.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class QuestManager : MonoBehaviour
|
||||
{
|
||||
public int day = 0;
|
||||
|
||||
public Quest[] quests = {
|
||||
new Quest(_name: "", _desc: "Find someone to hand out flyers to advertise our tavern to adventurers. Strength, dexterity, intelligence: doesn<73>t matter, find someone who would do this for as little money as possible.", _failedStr: "Damn, that didn<64>t work at all. That robot just randomly started playing an instrument, much to the dismay of the townspeople.", _strength: 0, _intelligence: 0, _charisma: 5),
|
||||
};
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
foreach (Quest quest in quests)
|
||||
{
|
||||
Debug.Log(quest.name);
|
||||
Debug.Log(quest.description);
|
||||
}
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class Quest
|
||||
{
|
||||
public string name;
|
||||
public string description;
|
||||
public string failedStr;
|
||||
public int strength, intelligence, charisma;
|
||||
|
||||
public Quest(string _name, string _desc, string _failedStr, int _strength, int _intelligence, int _charisma)
|
||||
{
|
||||
this.name = _name;
|
||||
this.description = _desc;
|
||||
this.failedStr = _failedStr;
|
||||
this.strength = _strength;
|
||||
this.intelligence = _intelligence;
|
||||
this.charisma = _charisma;
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/QuestManager.cs.meta
Normal file
11
Assets/Scripts/QuestManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb2c090bb57f87f4cae2a4a2b973f815
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user