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; | |
using System.Collections.Generic; | |
using Sirenix.OdinInspector; | |
using UnityEngine; | |
public class CameraAspectRatioMinMax : MonoBehaviour | |
{ | |
[BoxGroup("Render Camera")] |
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 UnityEngine; | |
public class CylinderGizmoDemo : MonoBehaviour | |
{ | |
public Color _color = Color.cyan; | |
public float _radius = 0.5f; | |
public float _height = 2f; | |
public int _circlePoints = 16; | |
public int _slices = 2; |
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
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
// Edits by Glynn Taylor. MIT license | |
// Includes code for splitmap by https://twitter.com/adamgryu and triplanar mapping by https://github.com/keijiro. MIT License | |
#ifndef TERRAIN_SPLATMAP_COMMON_CGINC_INCLUDED | |
#define TERRAIN_SPLATMAP_COMMON_CGINC_INCLUDED | |
struct Input | |
{ | |
float3 localNormal : TEXCOORD0; |
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Grid2D : MonoBehaviour | |
{ | |
// prefab tiles | |
public GameObject[] prefabs; | |
// current game state |
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Game : MonoBehaviour | |
{ | |
public static Game instance; | |
public Player player; | |
public int score = 0; |