// Start is called before the first frame update void Start() { counter = 0; SNS = GameObject.FindGameObjectWithTag("NPC"); odis = SNS.GetComponent <OutdoorScript>(); start = false; }
// Start is called before the first frame update void Start() { SR = GetComponent <SpriteRenderer>(); SR.sortingLayerName = "Default"; camera = GameObject.FindGameObjectWithTag("MainCamera"); tform = camera.GetComponent <Transform>(); outdoorScript = GameObject.Find("snssprite").GetComponent <OutdoorScript>(); player = GameObject.FindGameObjectWithTag("Player"); playerController = player.GetComponent <OutdoorPlayerController>(); talking = playerController.talking; }