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 Sirenix.OdinInspector; | |
| using UnityEngine; | |
| namespace TC._Project.Scripts.Simple { | |
| /// <summary> | |
| /// This class allows a GameObject with a CharacterController to push Rigidbodies. | |
| /// </summary> | |
| public class SimpleRigidBodyPush : MonoBehaviour { | |
| [Tooltip("Layers that can be pushed.")] | |
| [SerializeField] LayerMask m_pushLayers; |
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.Collections.Generic; | |
| namespace TC._Project.Scripts | |
| { | |
| public class ExpTable | |
| { | |
| Dictionary<int, int> m_expTable = new Dictionary<int, int>(); | |
| /// <summary> | |
| /// Generates the experience points (EXP) table up to the specified maximum level. |
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; | |
| namespace TC._Project.Scripts.Simple | |
| { | |
| public class SimpleRotateObject : MonoBehaviour { | |
| enum RotationAxis { | |
| X, | |
| Y, | |
| Z | |
| } |
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 DG.Tweening; | |
| namespace TC._Project.Scripts.Utilities | |
| { | |
| /// <summary> | |
| /// Class to handle the movement of a RectTransform based on mouse position. | |
| /// </summary> | |
| public class RectTransformMover : MonoBehaviour | |
| { |
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.EventSystems; | |
| namespace TC._Project.TestSystems.Debugging { | |
| /// <summary> | |
| /// A class that allows a UI window to be dragged within the bounds of its parent canvas. | |
| /// </summary> | |
| public class DragWindow : MonoBehaviour, IDragHandler, IPointerDownHandler { | |
| [Tooltip("The RectTransform of the window to be dragged.")] | |
| [SerializeField] RectTransform m_dragRectTransform; |
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; | |
| namespace TC._Project.TestSystems.Debugging { | |
| /// <summary> | |
| /// A class to capture screenshots in Unity. | |
| /// </summary> | |
| public class TakeScreenShot : MonoBehaviour { | |
| [Tooltip("The file path where screenshots will be saved.")] | |
| [SerializeField] string m_filePath = Application.dataPath + "/Screenshots"; | |
| [Tooltip("Whether to use a key press to trigger the screenshot.")] | |
| public bool m_useKey = true; |
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; | |
| namespace TC._UIToolkit { | |
| public static class ToolKitStrings { | |
| // USS Classes (commonly used) | |
| public static readonly string ScrollView = "__unity-scroll-view"; | |
| public static readonly string ListView = "__unity-list-view"; | |
| public static readonly string Button = "__unity-button"; | |
| public static readonly string Toggle = "__unity-toggle"; | |
| public static readonly string Label = "__unity-label"; |
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.Collections.Generic; | |
| using FPSPlayerController.DamonFPS.Player; | |
| using UnityEngine; | |
| namespace NewGameLogic.DamageSystem.Testing | |
| { | |
| [System.Serializable] | |
| public class BulletPenetration | |
| { | |
| [SerializeField] private float damageMultiplier = 0.5f; |
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.Pool; | |
| public class GlobalPoolManager : MonoBehaviour { | |
| // Singleton pattern to ensure only one instance of the manager | |
| static GlobalPoolManager s_instance; | |
| public static GlobalPoolManager Instance { | |
| get { | |
| if (s_instance) return s_instance; |
OlderNewer