void Start() { sound = GetComponent <GinoSoundControl>(); animator = GetComponent <Animator>(); player = GameObject.FindGameObjectWithTag("Player"); ginoController = player.GetComponent <CharacterControl>(); playerRBody = player.GetComponent <Rigidbody>(); cameraTransform = GameObject.FindGameObjectWithTag("MainCamera").transform; }
void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterControl>(); sound = GameObject.FindGameObjectWithTag("playerModel").GetComponent <GinoSoundControl>(); mat = transform.GetComponent <Renderer>().material; }