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 Deformable : MonoBehaviour | |
{ | |
//Public | |
public float minImpulse = 2; | |
public float malleability = 0.05f; | |
public float radius = 0.1f; |
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
#ifndef STACK_H | |
#define STACK_H | |
#include <stdlib.h> | |
#include <stddef.h> | |
#define DYNAMIC_ARRAY_INIT_CAPACITY 4 | |
#define DYNAMIC_ARRAY_GROWTH_FACTOR 2 | |
typedef struct Stack |
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
#ifndef DYNAMIC_ARRAY_H | |
#define DYNAMIC_ARRAY_H | |
#include <stdlib.h> | |
#include <stddef.h> | |
#define DYNAMIC_ARRAY_INIT_CAPACITY 4 | |
#define DYNAMIC_ARRAY_GROWTH_FACTOR 2 | |
typedef struct List |
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
#ifndef LINKED_LIST_H | |
#define LINKED_LIST_H | |
#include <stdlib.h> | |
#include <stddef.h> | |
typedef struct LLNode | |
{ | |
void *data; | |
struct LLNode *next; |
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
#pragma once | |
enum class Key | |
{ | |
LeftMouseBtn =0x01, //Left mouse button | |
RightMouseBtn =0x02, //Right mouse button | |
CtrlBrkPrcs =0x03, //Control-break processing | |
MidMouseBtn =0x04, //Middle mouse button | |
ThumbForward =0x05, //Thumb button back on mouse aka X1 |
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; | |
using System.Collections.Generic; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.IO; | |
public static class DataManager | |
{ | |
private static Dictionary<string, object> data; | |
/// <summary> |
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 UnityEngine.UI; | |
public class Joystick : MonoBehaviour | |
{ | |
//Public Variables | |
public Image centerImg; | |
[Tooltip("This field does not need to be filled")] |
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 CamShake : MonoBehaviour | |
{ | |
//Public Variables | |
[Header("Call 'Shake()' to shake")] | |
[Range(0, 2)] | |
public float intensity = 0.2f; |
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 UnityEditor; | |
using UnityEngine; | |
public class Snake : EditorWindow | |
{ | |
//Settings | |
int unit = 25; | |
Color headCol = new Color(0, 0.5f, 1); | |
Color tailCol = new Color(0, 0.5f, 0.8f); |
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; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
public class RenderCamera : EditorWindow | |
{ | |
//Private Variables | |
private Camera cam; | |
private Vector2 size; |