void Start() { wave = GameObject.Find("WaveChange").GetComponent <WaveChange>(); move = GameObject.Find("unitychan").GetComponent <PlayerMove>(); fade = GameObject.Find("FadePanel").GetComponent <FadeInOut>(); anime = GameObject.Find("unitychan").GetComponent <Animator>(); voice = GameObject.Find("unitychan").GetComponent <UnityVoice>(); unityAnime = GameObject.Find("unitychan").GetComponent <UnitychanAnimation>(); }
void Start() { tanma = 0; audioSources = GetComponents <AudioSource>(); audio = audioSources[6]; tmp = GameObject.Find("FadePanel").GetComponent <FadeInOut>(); waDestroy = GameObject.Find("Wall").GetComponent <WallDestroy>(); voice = GetComponent <UnityVoice>(); animator = GetComponent <Animator>(); GetComponent <Animator>().applyRootMotion = false; obje = GameObject.Find("Main Camera"); camera = obje.GetComponent <Camera>(); rigidbody = GetComponent <Rigidbody>(); rigidbody.freezeRotation = true; change = GameObject.Find("SceneChange").GetComponent <ChangeGameOver>(); }
void Start() { anima = GetComponent <Animator>(); voice = GetComponent <UnityVoice>(); StartCoroutine(loop()); }