Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     elfControl  = GameObject.FindGameObjectWithTag("Elf").GetComponent <ElfController>() as ElfController;
     giftCreator = FindObjectOfType <StuffGenerator>();
     //GameObject.FindGameObjectWithTag("GiftCreator").GetComponent as StuffGenerator;
 }