This file contains 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.Generic; | |
using System.IO; | |
using UnityEngine; | |
public class SaveLoad_JSON : MonoBehaviour | |
{ | |
private Json_SaveData _SaveData = new Json_SaveData(); | |
void Start() | |
{ |
This file contains 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; | |
using System.Xml.Serialization; | |
using System.IO; | |
public class SaveLoad_XML : MonoBehaviour | |
{ | |
private XML_SaveData _SaveData = new XML_SaveData(); |
This file contains 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 UnityEngine; | |
using System.IO; | |
public class ReadWrite_TextFile : MonoBehaviour | |
{ | |
[SerializeField] private string _Path = ""; | |
[SerializeField] private string _FileName = "ExampleTextFile"; | |
[Header("Example")] | |
[SerializeField] private string _Message = "Test Message"; |
This file contains 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; | |
[RequireComponent(typeof(Rigidbody2D))] | |
public class Movement_2D_Platformer : MonoBehaviour | |
{ | |
[Header("Settings")] | |
[SerializeField] private float _NormalSpeed = 5; | |
[SerializeField] private float _SprintSpeed = 8; |
This file contains 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; | |
[RequireComponent(typeof(Rigidbody2D))] | |
public class Movement_2D_TopDown : MonoBehaviour | |
{ | |
[Header("Settings")] | |
[SerializeField] private float _NormalSpeed = 5; | |
[SerializeField] private float _SprintSpeed = 8; |
This file contains 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; | |
[RequireComponent(typeof(CharacterController))] | |
public class Movement_CC_FirstPerson : MonoBehaviour | |
{ | |
[Header("Settings")] | |
[SerializeField] private float _NormalSpeed = 5; | |
[SerializeField] private float _SprintSpeed = 8; |
This file contains 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; | |
[RequireComponent(typeof(CharacterController))] | |
public class Movement_CC_Platformer : MonoBehaviour | |
{ | |
[Header("Settings")] | |
[SerializeField] private float _NormalSpeed = 5, _SprintSpeed = 8; | |
[SerializeField] private float _JumpSpeed = 5; |
This file contains 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; | |
[RequireComponent(typeof(CharacterController))] | |
public class Movement_CC_TopDown : MonoBehaviour | |
{ | |
//Movement | |
[Header("Settings Camera")] | |
[SerializeField] private Camera _Camera; |
This file contains 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 Movement_Camera : MonoBehaviour | |
{ | |
private enum CameraOptionsPos { None, Follow } | |
private enum CameraOptionsRot { None, Follow } | |
[Header("Options")] |
This file contains 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 Movement_FreeCamera : MonoBehaviour | |
{ | |
[SerializeField] private float _Speed = 5; | |
[SerializeField] private float _SprintSpeed = 8; | |
private float _CurrentSpeed; |
OlderNewer