示例#1
0
 private void Start()
 {
     roomLights = FindObjectsOfType<Light>();
     anim = GetComponent<Animator>();
     theSun = GameObject.FindGameObjectWithTag("SunTarget").GetComponent<Sun>();
     theGnome = GameObject.FindGameObjectWithTag("Player").GetComponent<GnomeStats>();
 }
 private void Start()
 {
     wait  = new WaitForSeconds(abilityDuration);
     gnome = GetComponent <GnomeStats>();
 }