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