Skip to content

Commit

Permalink
Update ViewModelProvider.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
push-pop authored Mar 15, 2021
1 parent b11895a commit aedb199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Util/ViewModelProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static Type GetViewModelType(string typeString)
return t;
}

public T GetViewModelInstance<T>() where T : UnityEngine.Component
public T GetViewModelInstance<T>() where T : ViewModelBase
{
var vm = GetComponent<T>();

Expand Down

0 comments on commit aedb199

Please sign in to comment.