示例#1
0
 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>();
 }
示例#2
0
 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>();
 }
示例#3
0
 void Start()
 {
     anima = GetComponent <Animator>();
     voice = GetComponent <UnityVoice>();
     StartCoroutine(loop());
 }