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();
    }
예제 #4
0
    // 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());
    }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     IQuestObjective qb = new CollectionObjective("Get VHS", 1, item, "Pick up the Conana VHS",false);
     Debug.Log(qb.ToString());
 }
예제 #6
0
 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");
 }
예제 #7
0
 private void Awake()
 {
     questName        = "Rozowy diament";
     questDescripiton = "Znajdz rozowy diament, aby przyspieszyc regeneracje";
     questObjective   = new CollectionObjective(this, 1, "pinkDiamond");
 }
예제 #8
0
파일: AxeQuest.cs 프로젝트: AdusV/GraRp
 private void Awake()
 {
     questName        = "Axe";
     questDescripiton = "Znajdz topor";
     questObjective   = new CollectionObjective(this, 1, "axe");
 }
예제 #9
0
 public GatherWitchBrooms()
 {
     QuestObjective = new CollectionObjective("Collect 10 Witch brooms",
                                              "You need to go to the witch houses, and gather their brooms.", 10, item);
 }
예제 #10
0
    // Use this for initialization
    void Start()
    {
        IQuestObjective qo = new CollectionObjective("Gather", 10, item, "Gather 10 meat!");

        print(qo.ToString());
    }
예제 #11
0
파일: CactusQuest.cs 프로젝트: AdusV/GraRp
 private void Awake()
 {
     questName        = "Kaktus";
     questDescripiton = "Znajdz kaktus, aby przyspieszczyc regeneracje jescze bardziej";
     questObjective   = new CollectionObjective(this, 1, "cactus");
 }
예제 #12
0
 private void Awake()
 {
     questName        = "Zbierz grzyby";
     questDescripiton = "Zbierz 5 grzybow";
     questObjective   = new CollectionObjective(this, 5, "mushroom");
 }