Skip to content

Instantly share code, notes, and snippets.

View vicky-andr-ui's full-sized avatar

vicky-andr-ui

View GitHub Profile
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()
{
void Update () {
float xDirection = Input.GetAxis ("Mouse X");
float yDirection = Input.GetAxis ("Mouse Y");
transform.Rotate (-yDirection, xDirection, 0);
CheckIfRayCastHit ();
}
void CheckIfRayCastHit (){
@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 {
/**
* _______ _______ ______ _____ _______ _ _
* |______ | |_____/ | | | | |_____| \___/
* ______| |_____ | \_ |_____| |_____ |_____ | | _/ \_
*
* Parallax Scrolling Library
* http://iprodev.github.io/Scrollax.js
*
* @version: 1.0.0
* @released: July 21, 2015
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
{
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),
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),
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
{
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
{
using UnityEngine;
public class SlowMotion : MonoBehaviour {
public float slowdownFactor = 0.05f;
public float slowdownLength = 2f;
void Update ()
{
Time.timeScale += (1f / slowdownLength) * Time.unscaledDeltaTime;