Esempio n. 1
0
    virtual public void Init(InventorType inventorType, int atk = 2)
    {
        this.inventorType = inventorType;
        this.atk          = atk;

        GetComponent <Collider>().enabled = true;
        initialized = true;

        Destroy(gameObject, lifeTime);
    }
Esempio n. 2
0
    //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;
    }
Esempio n. 3
0
    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);
    }