Example #1
0
    public void Consume(GameObject player)
    {
        ItemManagement itemManager = player.GetComponentInChildren <ItemManagement>();
        List <Weapon>  weapons     = itemManager.GetEquippedWeapons();
        SpriteRenderer sprite      = player.transform.Find("Sprite").GetComponent <SpriteRenderer>();

        StartCoroutine(AmplifyDamage(weapons, sprite));
    }