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