Exemple #1
0
    public void GiveQuest(CiscoTesting player, int index)
    {
        //give quest to player and set the SO to in progress
        Quest quest = player.GetComponent <PlayerQuestSystem>().GetQuestByID(giveableQuests[index].questID);

        if (!CheckDependentQuests(player, quest, index) || quest.questData.questState >= QuestState.completed)
        {
            return;
        }
        //We have done them all
        player.GetComponent <PlayerQuestSystem>().SetQuestStatus(quest.questID, QuestState.inProgress);
        player.UpdateCompletionStatus();
        questsGiven++;
        gaveQuest = true;
        hasTalked = true;
    }
 private void StopPlayerMovement()
 {
     Debug.Log("Stop player movement");
     player.GetComponent <PlayerController>().playerCanMove = false;
 }
Exemple #3
0
 public void Consume(CiscoTesting player)
 {
     player.GetComponent <HealthSystem>().heal(potionPower);
 }