示例#1
0
 // Use this for initialization
 void Start()
 {
     elfControl  = GameObject.FindGameObjectWithTag("Elf").GetComponent <ElfController>() as ElfController;
     giftCreator = FindObjectOfType <StuffGenerator>();
     //GameObject.FindGameObjectWithTag("GiftCreator").GetComponent as StuffGenerator;
 }
示例#2
0
 protected void Awake()
 {
     elfController = GetComponent <ElfController>();
     audioManager  = FindObjectOfType <AudioManager>();
 }