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; | |
[ExecuteAlways] | |
public class IK2DFabrik : MonoBehaviour | |
{ | |
public Transform Target; | |
public bool Inverse = false; | |
[SerializeField] | |
private int ChainLength = 2; |
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
/* | |
Usage: | |
Call Init() once on create | |
Call Update() in end of UpdateFrame() | |
*/ | |
public static class Input | |
{ | |
private static GameWindow gameWindow; | |
private static KeyboardState keyboardState, lastKeyboardState; |
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
public class Camera | |
{ | |
public Vector3 Position; | |
public Vector3 Rotation; | |
public Vector3 Scale = Vector3.One/3; | |
public float Size = 1; | |
public static Camera Main = new Camera(); |
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 Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Input; | |
public static class Input | |
{ | |
#region Keyboard | |
private static KeyboardState kstate; | |
private static KeyboardState last_kstate; | |
/// <summary> | |
/// Is key pressed |
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.Linq; | |
public static class Debug | |
{ | |
//private static string LogHistory { get; set; } = string.Empty; | |
public static List<Message> messages { get; set; } = new List<Message>(); | |
public static int Limit = 20; |