Ejemplo n.º 1
0
    public void OnTransformationButtonClicked()
    {
        if (julia.CanTransform && juliett.CanTransform)
        {
            IsSmallForm             = !IsSmallForm;
            physicalCollider.size   = CurrentPlayerCharacter.PhysicalBounds.size;
            physicalCollider.offset = CurrentPlayerCharacter.PhysicalBounds.center;
            controller.CalculateRaySpacing();

            CurrentPlayerCharacter.IsActive = true;
            WaitingPlayerCharacter.IsActive = false;
            CurrentPlayerCharacter.OnTransformation(WaitingPlayerCharacter);

            PlayerTransformed(IsSmallForm);
            CanDoSpecialAction       = true;
            IsTransformationCoolTime = true;
            PlayTransformationEffects();
            soundEffects.PlayTransformationSound();
        }
        else
        {
            soundEffects.PlayTransformationDeniedSound();
        }
    }
Ejemplo n.º 2
0
 public void OnActionButtonClicked()
 {
     CurrentPlayerCharacter.OnActionButtonClicked();
 }