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.Generic; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| [RequireComponent(typeof(LineRenderer))] | |
| public class LineProjection : MonoBehaviour | |
| { | |
| [SerializeField] private Transform _obstaclesParent; | |
| [SerializeField] private int _maxPhysicsFrameIterations = 100; |
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 UnityEngine; | |
| public static class ConsoleReporter | |
| { | |
| private static readonly string _cantFind = "coulnd't be found!"; | |
| private static readonly string _redError = "<b><color=red>Error: </color></b>"; | |
| private static readonly string _clickHighlight = "Click to highlight in hierarchy"; | |
| private static readonly string _inspectorWasntSet = "was not set in the inspector!"; | |
| public static void LogNullObject(string objectName) |
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 UnityEngine; | |
| using UnityEngine.UI; | |
| public class FlexibleGridLayout : LayoutGroup | |
| { | |
| [SerializeField] private FlexibleGrid _grid; | |
| public override void CalculateLayoutInputHorizontal() | |
| { | |
| base.CalculateLayoutInputHorizontal(); |
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 UnityEngine; | |
| public class CharacterMovement | |
| { | |
| private const float JUMP_HEIGHT = 8f; | |
| private const float GRAVITY_VALUE = 9.81f; | |
| private readonly float _speed; | |
| private float _turnSmoothVelocity; | |
| private readonly Transform _target; |
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
| private void ShouldCacheThing<TComponentType>(GameObject target, ref TComponentType field) where TComponentType : UnityEngine.Object //might need to be Component here | |
| { | |
| if (!field) | |
| field = target.GetComponent<TComponentType>(); | |
| } |
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; | |
| using System.IO; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading; | |
| using UnityEngine; | |
| public class UDPManager | |
| { |
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 UnityEngine; | |
| using System.Collections.Generic; | |
| public class EnemyPoolController : MonoBehaviour | |
| { | |
| public readonly static HashSet<EnemyPoolController> Pool = new HashSet<EnemyPoolController>(); | |
| private void OnEnable() | |
| { | |
| EnemyPoolController.Pool.Add(this); |
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; | |
| using UnityEngine; | |
| public struct SwipeData | |
| { | |
| public Vector2 StartPosition, EndPosition; | |
| public SwipeDirection Direction; | |
| } | |
| public enum SwipeDirection |
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
| 1. Restart the PC | |
| 2. Go to: | |
| C:\Program Files\Unity\Hub\Editor\2019.2.6f1\Editor\Data\PlaybackEngines\ | |
| (this example is for 2019.2.6f1 but you can choose any other) | |
| 3. You will find there a folder "AndroidPlayer". Delete that AndroidPlayer folder. | |
| You will need to be a User with Admin rights, and this is probably why Unity fails on uninstall, it has no permission to delete the folder. |
NewerOlder