virtual public void Init(InventorType inventorType, int atk = 2) { this.inventorType = inventorType; this.atk = atk; GetComponent <Collider>().enabled = true; initialized = true; Destroy(gameObject, lifeTime); }
//override public void Init(InventorType inventorType,GameObject inventor int baseAtk = 2) //{ // this.inventorType = inventorType; // this.baseAtk = baseAtk; // this.atk = baseAtk; // this.maxAtk = 20; // initialized = true; //} public void Init(InventorType inventorType, GameObject inventor, int baseAtk = 2, int maxAtk = 20) { this.inventorType = inventorType; this.inventor = inventor; this.baseAtk = baseAtk; this.atk = baseAtk; this.maxAtk = maxAtk; percent = 0; initialized = true; }
override public void Init(InventorType inventorType, int atk = 2) { this.inventorType = inventorType; this.atk = atk; GetComponent <SphereCollider>().enabled = true; smoke.SetActive(true); initialized = true; Destroy(gameObject, lifeTime); }