예제 #1
0
        public void IncreaseCharge()
        {
            chargePower += chargeSpeed * Time.deltaTime;
            chargePower  = MathHelper.Min(chargePower, chargeMax);
            GameManager.Instance.SetSecondLabel(chargePower.ToString("0.00"));

            Vector2 chargeTranslationVector = VectorFacing.RotateVectorToFacing(chargeMove, body.GetFacing());

            offset = chargeTranslationVector * (chargePower / chargeMax);
            blob.transform.LocalPosition = offset + currentAnchor;
        }