Exemplo n.º 1
0
 void Start()
 {
     myCam    = GetComponent <Camera>();
     QuestBar = GameObject.Find("QuestBar").GetComponent <Image>();
     QuestBar.gameObject.SetActive(false);
     sounds            = GameObject.Find("QuestNPC").GetComponent <TalkingToPlayer>();
     gold              = GameObject.Find("Player").GetComponent <ExperienceScript>();
     questsInteraction = GameObject.Find("QuestManager").GetComponent <QuestsInteraction>();
 }
 void Start()
 {
     PlayerTrans           = GameObject.Find("Player").GetComponent <Transform>();
     experience            = GameObject.Find("Player").GetComponent <ExperienceScript>();
     anim                  = GetComponent <Animation>();
     healthSlider          = GetComponentInChildren <Slider>();
     healthSlider.maxValue = enemyHealth;
     healthSlider.value    = enemyHealth;
     PlayerScript          = GameObject.Find("Player").GetComponent <PlayerScript>();
     Attack                = GameObject.Find("GM").GetComponent <GameMasterScript>();
 }
Exemplo n.º 3
0
 void Start()
 {
     anim        = GetComponent <Animation>();
     rb          = GetComponent <Rigidbody>();
     health      = GetComponent <HealthScript>();
     mana        = GetComponent <HealthScript>();
     warningText = GameObject.Find("WarningText").GetComponent <Text>();
     audioS      = GetComponent <AudioSource>();
     respawnBtn  = GameObject.Find("RespawnBTN").GetComponent <Button>();
     respawnBtn.gameObject.SetActive(false);
     PlayerLevel = GetComponent <ExperienceScript>();
     attack      = GameObject.Find("GM").GetComponent <GameMasterScript>();
 }
Exemplo n.º 4
0
 void Start()
 {
     PlayerTrans           = GameObject.Find("Player").GetComponent <Transform>();
     experience            = GameObject.Find("Player").GetComponent <ExperienceScript>();
     anim                  = GetComponent <Animation>();
     healthSlider          = GetComponentInChildren <Slider>();
     healthSlider.maxValue = enemyHealth;
     healthSlider.value    = enemyHealth;
     PlayerScript          = GameObject.Find("Player").GetComponent <PlayerScript>();
     audioS                = GetComponent <AudioSource>();
     killerCounter         = GameObject.Find("QuestManager").GetComponent <QuestsInteraction>();
     Attack                = GameObject.Find("GM").GetComponent <GameMasterScript>();
 }
    void Start()
    {
        taskText = GameObject.Find("TaskText").GetComponent <Text>();
        taskText.gameObject.SetActive(false);
        experience = GameObject.Find("Player").GetComponent <ExperienceScript>();

        completeQuest.gameObject.SetActive(false);

        QuestToTakeMark    = GameObject.Find("Quest").GetComponent <SpriteRenderer>();
        QuestCompletedMark = GameObject.Find("QuestDone").GetComponent <SpriteRenderer>();
        QuestCompletedMark.gameObject.SetActive(false);
        audioS = GetComponent <AudioSource>();
        sounds = GameObject.Find("QuestNPC").GetComponent <TalkingToPlayer>();
    }
Exemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        if (xp != null)
        {
            Debug.Log("An instance of this object already exists !");
            return;
        }
        else
        {
            xp = this;
        }
        totalExperience = currentExperience;

        UIManager.ui.UpdateXpBar();
        UIManager.ui.UpdateLvl();
    }