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.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class GuessUpperSide : MonoBehaviour | |
{ | |
public Text UpperSideTxt; | |
public Vector3Int DirectionValues; | |
private Vector3Int OpposingDirectionValues; |
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 UnityEngine; | |
[RequireComponent(typeof(Collider))] | |
public class Move3D : MonoBehaviour | |
{ | |
private Camera mainCamera; | |
private float CameraZDistance; | |
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
using UnityEngine; | |
public class RotateWithMouse : MonoBehaviour | |
{ | |
public float Speed = 5; | |
void Update() | |
{ | |
if(Input.GetMouseButton(0)) |
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.Generic; | |
using UnityEngine; | |
using Random = UnityEngine.Random; | |
public enum SwitchHighlightMode | |
{ | |
Random, | |
InOrder //Loop | |
} |
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 UnityEngine; | |
public class Rotater : MonoBehaviour | |
{ | |
private Transform ToRotate; | |
private bool RotationStarted = false; | |
private float Speed = 50.0f; | |
public Vector3 Axis; |
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 UnityEngine; | |
public class CenterSurrounder : MonoBehaviour | |
{ | |
public GameObject OriginalSurrounderObject; | |
public int SurrounderObjectCount; | |
private readonly float AppearWaitDuration = 0.3f; | |
private Transform SurrounderParentTransform; |
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 UnityEngine; | |
public class Cubifier : MonoBehaviour | |
{ | |
public GameObject TargetCube; | |
public Vector3 SectionCount; | |
public Material SubCubeMaterial; | |
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 AutomaticShooter : MonoBehaviour | |
{ | |
public GameObject SpawnPrefab; | |
public float newSpawnDuration = 0.1f; | |
public float forceMultiplier = 2; | |
private Vector3 SpawnPos; | |
private Vector3 SpawnScreenPos; |
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; | |
[RequireComponent(typeof(MeshRenderer))] | |
[RequireComponent(typeof(Collider))] | |
[RequireComponent(typeof(DragAndShoot))] | |
public class MaterialChanger : MonoBehaviour | |
{ | |
public Material CorrectMat; | |
public Material WrongMat; | |
private MeshRenderer m_meshRenderer; |
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; | |
[RequireComponent(typeof(Rigidbody))] | |
[RequireComponent(typeof(Collider))] | |
public class Stick : MonoBehaviour | |
{ | |
public string StuckObjectTag = "Wall"; | |
private void OnCollisionEnter(Collision other) |
NewerOlder