public void UpdateQuest(GameObject MissionManager) { this.MissionManager = MissionManager; coObjective = MissionManager.GetComponent <CollectionObjective>(); loObjective = MissionManager.GetComponent <LocationObjective>(); ioObjective = MissionManager.GetComponent <InteractionObjective>(); }
public void SetItemPreview(GameObject item, CollectionObjective objective) { if (currentObjective != null) { SetUpdateDisabled(objective); } currentObjective = objective; foreach (Transform child in item.transform) { child.gameObject.layer = LayerMask.NameToLayer("UI"); } item.gameObject.layer = LayerMask.NameToLayer("UI"); item.transform.SetParent(itemParent); item.transform.localScale = Vector3.one; item.transform.localPosition = Vector3.zero; SetUpdateEnabled(currentObjective); }
public void GetData(ScriptableQuest quest, GameObject MissionManager) { this.quest = quest; this.MissionManager = MissionManager; startEvents = quest.startEvents; endEvents = quest.endEvents; titel = quest.missionName; id = quest.name; isCompleted = false; coObjective = MissionManager.GetComponent <CollectionObjective>(); loObjective = MissionManager.GetComponent <LocationObjective>(); ioObjective = MissionManager.GetComponent <InteractionObjective>(); waveEvent = MissionManager.GetComponent <WaveEvent>(); if (startEvents != null) { StartEvent(startEvents); } NextObjective(); }
// Start is called before the first frame update void Start() { IQuestObjective qo = new CollectionObjective("Gather", 10, item, "Gather 10 meath!", false); Debug.Log(qo.ToString()); }
// Use this for initialization void Start() { IQuestObjective qb = new CollectionObjective("Get VHS", 1, item, "Pick up the Conana VHS",false); Debug.Log(qb.ToString()); }
private void Awake() { questName = "Pszenica"; questDescripiton = "Prosze dobrodzieju znajdz sam moja pszenica zly Warlock Adama's ja ukryl i nie wiem jak zyc bez niej sam"; questObjective = new CollectionObjective(this, 1, "wheat"); }
private void Awake() { questName = "Rozowy diament"; questDescripiton = "Znajdz rozowy diament, aby przyspieszyc regeneracje"; questObjective = new CollectionObjective(this, 1, "pinkDiamond"); }
private void Awake() { questName = "Axe"; questDescripiton = "Znajdz topor"; questObjective = new CollectionObjective(this, 1, "axe"); }
public GatherWitchBrooms() { QuestObjective = new CollectionObjective("Collect 10 Witch brooms", "You need to go to the witch houses, and gather their brooms.", 10, item); }
// Use this for initialization void Start() { IQuestObjective qo = new CollectionObjective("Gather", 10, item, "Gather 10 meat!"); print(qo.ToString()); }
private void Awake() { questName = "Kaktus"; questDescripiton = "Znajdz kaktus, aby przyspieszczyc regeneracje jescze bardziej"; questObjective = new CollectionObjective(this, 1, "cactus"); }
private void Awake() { questName = "Zbierz grzyby"; questDescripiton = "Zbierz 5 grzybow"; questObjective = new CollectionObjective(this, 5, "mushroom"); }