Brackeys / 2D-Character-Controller

Free 2D Character Controller for Unity.
https://youtu.be/dwcT-Dch0bA
1.16k stars 1.62k forks source link

old code I guess... here are some problems I couldn't figure out #27

Open Lukemanluke opened 4 years ago

Lukemanluke commented 4 years ago

Assets\scripts\CharacterController2D.cs(27,9): error CS0246: The type or namespace name 'UnityEvent' could not be found (are you missing a using directive or an assembly reference?)

Assets\scripts\CharacterController2D.cs(30,27): error CS0246: The type or namespace name 'UnityEvent<>' could not be found (are you missing a using directive or an assembly reference?)

jufryananta commented 4 years ago

Assets\scripts\CharacterController2D.cs(27,9): error CS0246: The type or namespace name 'UnityEvent' could not be found (are you missing a using directive or an assembly reference?)

Assets\scripts\CharacterController2D.cs(30,27): error CS0246: The type or namespace name 'UnityEvent<>' could not be found (are you missing a using directive or an assembly reference?)

Include "UnityEngine events" in header of your script.

using UnityEngine;
using UnityEngine.Events;