Skip to content

Commit

Permalink
Fix interface method.
Browse files Browse the repository at this point in the history
  • Loading branch information
supremepanda committed Mar 15, 2024
1 parent 097aa74 commit 79b24bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class CameraShakeSourceEditor : Editor
public override void OnInspectorGUI()
{
DrawDefaultInspector();
var cameraShakeSource = (CameraShakeSource)target;
var cameraShakeSource = (ICameraShakeSource)target;
if (GUILayout.Button("Shake"))
{
cameraShakeSource.OnShake();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace CameraShakeManager
{
public interface ICameraShakeSource
{
public event Action<CameraShakeSourceData> Shaked;
public event Action<CameraShakeSourceData> Shaked;
public void OnShake();
}
}

0 comments on commit 79b24bb

Please sign in to comment.