Brackeys / 2D-Character-Controller

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

Says i have to fix errors but i have the exact cod pasted onto the script #30

Open ThothDev opened 4 years ago

ThothDev commented 4 years ago

It tells me to fix compile errors some examples of these errors are Assets\CharacterController2d.cs(11,37): warning CS0649: Field 'CharacterController2D.m_WhatIsGround' is never assigned to, and will always have its default value, Assets\CharacterController2d.cs(13,37): warning CS0649: Field 'CharacterController2D.m_CeilingCheck' is never assigned to, and will always have its default value null, Assets\CharacterController2d.cs(14,38): warning CS0649: Field 'CharacterController2D.m_CrouchDisableCollider' is never assigned to, and will always have its default value null, Assets\CharacterController2d.cs(12,37): warning CS0649: Field 'CharacterController2D.m_GroundCheck' is never assigned to, and will always have its default value null, and Should not be capturing when there is a hotcontrol UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&). Please help me

markstonehouse commented 3 years ago

@ThothDev you still receiving the same errors? These errors will occur when the 'Ground Check' and 'Ceiling Check' attributes have not been set here. Once you have set this attributes, those errors should be resolved. So, just ensure that these attributes have been set.

image