Exemplo n.º 1
0
 protected virtual void Start()
 {
     ctrl           = FindObjectOfType <Ctrl>();
     playerMovement = FindObjectOfType <PlayerMovement>();
     panel          = GameObject.Find("ChattingCanvas").transform.GetChild(0).gameObject;
     panel.SetActive(true);
     panelImage = panel.gameObject.GetComponentInChildren <Image>();
     panelText  = panel.gameObject.GetComponentInChildren <Text>();
     panel.SetActive(false);
     talkEffect = GetComponent <TalkEffect>();
     tentPrefab = Resources.Load("Prefabs/buildings/tent", typeof(GameObject)) as GameObject;
     NPCdashida = FindObjectOfType <NPC_DASHIDA>();
 }
Exemplo n.º 2
0
 private void Start()
 {
     dashida = FindObjectOfType <NPC_DASHIDA>();
 }