loading...

re: Implementing the Strategy design pattern using Scriptable Objects in Unity VIEW POST

FULL DISCUSSION
 

Player.cs
public void Attack(IAttack attack)
{
attack.Execute(this);
}

How do you pass an attack to this function? Do you use a custom serializer to expose IAttack in the inspector??

code of conduct - report abuse