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.Animations; | |
| using UnityEngine.Playables; | |
| [RequireComponent(typeof(Animator))] | |
| public class AnimationController : MonoBehaviour | |
| { | |
| const string ANIMATION = "Animation"; | |
| PlayableGraph _playableGraph; |
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; | |
| [RequireComponent( typeof(Camera) )] | |
| public class FlyCamera : MonoBehaviour { | |
| public float acceleration = 50; // how fast you accelerate | |
| public float accSprintMultiplier = 4; // how much faster you go when "sprinting" | |
| public float lookSensitivity = 1; // mouse look sensitivity | |
| public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input | |
| public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable |
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 ScreenShakeController : MonoBehaviour | |
| { | |
| // This is a singleton | |
| public static ScreenShakeController _instance; | |
| public float shakeTimeRemaining = 1f; | |
| private float shakePower = 0.5f; | |
| private float shakeFadeTime; |
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
| /* | |
| * Created by C.J. Kimberlin | |
| * Refactored by Mane Function | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2019-2023 | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal |
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
| //************** REAL GAMES STUDIO *************** | |
| //************************************************ | |
| //realgamesss.weebly.com | |
| //gamejolt.com/@Real_Game | |
| //realgamesss.newgrounds.com/ | |
| //real-games.itch.io/ | |
| //youtube.com/channel/UC_Adg-mo-IPg6uLacuQCZCQ | |
| //************************************************ | |
| using UnityEngine; |
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 System.Globalization; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Security.Cryptography; | |
| using UnityEditor; | |
| using UnityEditor.IMGUI.Controls; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; |
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 SimpleSquashStretch : MonoBehaviour { | |
| public Vector3 wallSquash = new Vector3(1.66f, 0.7f, 0.1f); | |
| public Sprite m_SpriteRenderer; | |
| void Start() |
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
| /* | |
| * Created by C.J. Kimberlin | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2019 | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
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 System.Globalization; | |
| using System.Linq; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.EditorTools; | |
| // Tagging a class with the EditorTool attribute and no target type registers a global tool. Global tools are valid for any selection, and are accessible through the top left toolbar in the editor. | |
| [EditorTool("Moving Particle Context")] |



