public void update(long time, boolean isAttack){        
        if(attackArea.isCharging()){
            if(isAttack){
                Debug.println("update!!");
                attackArea.updateCharge(time);
            } else {
                //give attack flag
                attack = true;
            }
        } else {
            if(isAttack){
                Debug.println("Start charging");
                attackArea.startCharging(time);
            }
        }
        
        if (showEffect && (time - effectTimeLast)>EFFECT_TIME){
            showEffect = false;
        }
    }