Exemplo 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>();
 }
Exemplo 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);
     }
 }
Exemplo 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);
    }
Exemplo n.º 4
0
    //Charlotte npc;

    private void Awake()
    {
        player = GameObject.FindWithTag("Player").GetComponent <SMPlayerStats>();
    }
Exemplo n.º 5
0
 void Awake()
 {
     npc         = gameObject.GetComponent <SMNPCEntity>();
     player      = GameObject.Find("PlayerController").GetComponent <SMPlayerStats>();
     displayStat = gameObject.GetComponent <SMDialogueTrigger>();
 }
Exemplo n.º 6
0
 // Start is called before the first frame update
 void Start()
 {
     player = GameObject.FindWithTag("Player").GetComponent <SMPlayerStats>();
     skills = GetComponent <Skills>();
 }
Exemplo 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>();
 }
Exemplo n.º 8
0
 private void Awake()
 {
     player = GameObject.Find("PlayerController").GetComponent <SMPlayerStats>();
 }
Exemplo n.º 9
0
 private void Awake()
 {
     playerStats = GameObject.FindWithTag("Player").GetComponent <SMPlayerStats>();
     SetWillBar(playerStats.will);
     //SetAnxietyBar(playerStats.anxiety);
 }