This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| [InitializeOnLoad] | |
| public static class StartAtFirstScene | |
| { | |
| static StartAtFirstScene() | |
| { | |
| EditorApplication.playModeStateChanged += LoadStartScene; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEditor; | |
| using UnityEngine; | |
| [CustomPropertyDrawer(typeof(DynamicHeaderAttribute))] | |
| public class DynamicHeaderDrawer : PropertyDrawer | |
| { | |
| public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) | |
| { | |
| GUIStyle headerStyle = new GUIStyle(EditorStyles.boldLabel) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class FootstepController : MonoBehaviour | |
| { | |
| private AudioSource aSource; | |
| [SerializeField] private LayerMask groundLayer; | |
| [SerializeField] private AudioClip walk, sandWalk, mudWalk,grassWalk,metalWalk; | |
| private RaycastHit hit; |