void Start() { cntller = FindObjectOfType <MainPlayerController>(); p_score = FindObjectOfType <PlayerScore>(); i_ped = FindObjectOfType <InteractionWithPedestrian>(); acon = bgaudio.GetComponent <AudioSource>(); cameraspeed = moveinput * m_movespeed; }
// Start is called before the first frame update void Start() { i_p = FindObjectOfType <InteractionWithPedestrian>(); m_p_c = FindObjectOfType <MainPlayerController>(); animator = GetComponent <Animator>(); rb = GetComponent <Rigidbody>(); xvalue = this.gameObject.transform.position.x; yvalue = this.gameObject.transform.position.y; zvalue = this.gameObject.transform.position.z; }
// Start is called before the first frame update void Start() { ped_prefab = GetComponent <GameObject>(); int_ped = FindObjectOfType <InteractionWithPedestrian>(); ped_prefab.SetActive(false); }