Esempio n. 1
0
 // Start is called before the first frame update
 void Awake()
 {
     nameText     = GameObject.Find("Name").GetComponent <Text>();
     dialogueText = GameObject.Find("Dialogue").GetComponent <Text>();
     //options = GameObject.Find("Options").GetComponent<PanelScript>();
     display = GameObject.Find("DialoguePanel").GetComponent <PanelScript>();
     nPCAI   = GameObject.Find("NPC").GetComponent <NPCAI>();
     //playerNav = GameObject.Find("PlayerNav").GetComponent<Image>();
     player = GameObject.Find("PlayerController").GetComponent <SMPlayerStats>();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Awake()
 {
     will    = ambientW + intrinsicW;
     attacks = GetComponent <Attacks>();
     skills  = GetComponent <Skills>();
     if (Instance == null)
     {
         Instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Esempio n. 3
0
    void Awake()
    {
        player = GameObject.Find("PlayerController").GetComponent <SMPlayerStats>();
        //dialogueManager = GameObject.Find("DialogueManager").GetComponent<DialogueManager>();
        Continue  = GameObject.Find("Continue").GetComponent <Button>();
        playerNav = GameObject.Find("PlayerNav").GetComponent <Image>();
        attack    = GameObject.Find("Attack sub").GetComponent <PanelScript>();
        skills    = GameObject.Find("Skill sub").GetComponent <PanelScript>();
        items     = GameObject.Find("Item sub").GetComponent <PanelScript>();
        options   = GameObject.Find("Options").GetComponent <PanelScript>();

        options.show();
        attack.hide();
        skills.hide();
        items.hide();
        playerNav.gameObject.SetActive(true);
    }
Esempio n. 4
0
    //Charlotte npc;

    private void Awake()
    {
        player = GameObject.FindWithTag("Player").GetComponent <SMPlayerStats>();
    }
Esempio n. 5
0
 void Awake()
 {
     npc         = gameObject.GetComponent <SMNPCEntity>();
     player      = GameObject.Find("PlayerController").GetComponent <SMPlayerStats>();
     displayStat = gameObject.GetComponent <SMDialogueTrigger>();
 }
Esempio n. 6
0
 // Start is called before the first frame update
 void Start()
 {
     player = GameObject.FindWithTag("Player").GetComponent <SMPlayerStats>();
     skills = GetComponent <Skills>();
 }
Esempio n. 7
0
 //Adds a skill onto skills
 private void learnSkill(Skills skill)
 {
     //Todo: get skills from the entity
     player = GameObject.FindWithTag("Player").GetComponent <SMPlayerStats>();
 }
Esempio n. 8
0
 private void Awake()
 {
     player = GameObject.Find("PlayerController").GetComponent <SMPlayerStats>();
 }
Esempio n. 9
0
 private void Awake()
 {
     playerStats = GameObject.FindWithTag("Player").GetComponent <SMPlayerStats>();
     SetWillBar(playerStats.will);
     //SetAnxietyBar(playerStats.anxiety);
 }