Refactoring of status system to prevent bug w/ events

This commit is contained in:
Antoine H 2021-01-27 15:31:18 +01:00
parent fd8306645b
commit e89483d612
13 changed files with 487 additions and 113 deletions

View file

@ -62,6 +62,6 @@ public class SoftObstacle : MonoBehaviour
void OnDestroy()
{
EventManager.Instance.destroyEvent(gameObject);
EventManager.Instance.removeEvent(gameObject);
}
}