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 test : MonoBehaviour | |
| { | |
| GameObject piece; | |
| // Start is called before the first frame update | |
| 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
| void Update () { | |
| float xDirection = Input.GetAxis ("Mouse X"); | |
| float yDirection = Input.GetAxis ("Mouse Y"); | |
| transform.Rotate (-yDirection, xDirection, 0); | |
| CheckIfRayCastHit (); | |
| } | |
| void CheckIfRayCastHit (){ |
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
| @charset "UTF-8"; | |
| /*! | |
| Animate.css - http://daneden.me/animate | |
| Licensed under the MIT license - http://opensource.org/licenses/MIT | |
| Copyright (c) 2015 Daniel Eden | |
| */ | |
| .animated { |
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
| /** | |
| * _______ _______ ______ _____ _______ _ _ | |
| * |______ | |_____/ | | | | |_____| \___/ | |
| * ______| |_____ | \_ |_____| |_____ |_____ | | _/ \_ | |
| * | |
| * Parallax Scrolling Library | |
| * http://iprodev.github.io/Scrollax.js | |
| * | |
| * @version: 1.0.0 | |
| * @released: July 21, 2015 |
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 VoxelData : MonoBehaviour | |
| { | |
| int[,] data = new int[,] { { 0, 1, 1 }, { 1, 1, 1 }, { 1, 1, 0 } }; | |
| public int Width | |
| { |
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; | |
| //tut : https://www.youtube.com/watch?v=pe9okia1JJY&list=PL5KbKbJ6Gf9-d303Lk8TGKCW-t5JsBdtB&index=9 | |
| public static class CubeMeshData | |
| { | |
| public static Vector3[] vertices = { | |
| new Vector3 ( 1, 1, 1), | |
| new Vector3 (-1, 1, 1), |
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 static class CubeMeshData | |
| { | |
| public static Vector3[] vertices = { | |
| new Vector3 ( 1, 1, 1), | |
| new Vector3 (-1, 1, 1), | |
| new Vector3 (-1, -1, 1), |
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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| // tut : https://www.youtube.com/watch?v=dc8LjeaL3k4&list=PL5KbKbJ6Gf9-d303Lk8TGKCW-t5JsBdtB&index=7 | |
| // devirative of https://catlikecoding.com/unity/tutorials/procedural-grid/ | |
| [RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))] | |
| public class ProceduralGrid : 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 System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine/ | |
| // tut : https://www.youtube.com/watch?v=8PlpCbxB6tY&list=PL5KbKbJ6Gf9-d303Lk8TGKCW-t5JsBdtB&index=6 | |
| [RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))] | |
| public class ProceduralGrid : 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; | |
| public class SlowMotion : MonoBehaviour { | |
| public float slowdownFactor = 0.05f; | |
| public float slowdownLength = 2f; | |
| void Update () | |
| { | |
| Time.timeScale += (1f / slowdownLength) * Time.unscaledDeltaTime; |