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(); } }
public void OnActionButtonClicked() { CurrentPlayerCharacter.OnActionButtonClicked(); }