// public GameObject effect; // Start is called before the first frame update void Start() { thedialloue = FindObjectOfType <Dialloue>(); theStat = FindObjectOfType <PlayerStat>(); // theFloat = FindObjectOfType<FlotingText>(); // GameObject gm = GameObject.Find("Npc_Assassin"); gmAssasin = GameObject.FindObjectOfType <GameObject>(); }
private bool istyping; //타이핑시 NextSentence 를 호출하면안됨 // [SerializeField] //Image progressBar; private void Awake() { if (instance == null) { DontDestroyOnLoad(this.gameObject); instance = this; } else { Destroy(this.gameObject); } instance = this; }
// Start is called before the first frame update void Start() { theStat = FindObjectOfType <PlayerStat>(); thedialloue = FindObjectOfType <Dialloue>(); }
private void Start() { theStat = FindObjectOfType <PlayerStat>(); //theStat = GetComponent<PlayerStat>(); thedialloue = FindObjectOfType <Dialloue>(); }