public ItemGenerator() { this.stuffGenerator = new StuffGenerator <TModuleType>(); this.goldGenerator = new GoldGenerator <TModuleType>(); this.consommableGenerator = new ConsommableGenerator <TModuleType>(); this.lootAttribute = new LootAttributes(); this.offset = Vector3.up; }
// Use this for initialization void Start() { elfControl = GameObject.FindGameObjectWithTag("Elf").GetComponent <ElfController>() as ElfController; giftCreator = FindObjectOfType <StuffGenerator>(); //GameObject.FindGameObjectWithTag("GiftCreator").GetComponent as StuffGenerator; }