Skip to content

Instantly share code, notes, and snippets.

public class ReaderAI : MonoBehaviour {
public GameObject namePrefab, myNameOb, DropItem, myCrown, kill;
private float radian, time, randomTime, randomRoteSpeed, goalAngle;
public float raydistance, rotespeed, raydistanceSide, rayDiagonal, changeUp, changeRight, rayrote, calltimeForFreetime;
public float speed;
private float dropShortDis, dropDis;
private Rigidbody2D myrb;
private bool rightgo, downCount, rightCount, deadoneplay;
private GameObject giveBirthChara, playerOb, migawari;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TextScaleDownOrUp : MonoBehaviour
{
public float time, changeSpeed;
public bool enlarge;
void Start()
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DrawOb : MonoBehaviour
{
private Camera camera;
public GameObject InstantiatedOb;
void Start()
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeshCreate : MonoBehaviour
{
private MeshFilter meshFilter;
public Material material;
private MeshRenderer meshRenderer;
@daichi-takezawa
daichi-takezawa / CreateMesh.cs
Last active April 28, 2020 17:37
ただInspectorから自由自在なMeshを作成するスクリプト
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter), typeof(MeshCollider))]
public class CreateMeshByMouse : MonoBehaviour
{
[SerializeField] List<Vector2> centerPoints;
@daichi-takezawa
daichi-takezawa / CreateMeshByMouse.cs
Created April 28, 2020 17:36
クリックでなぞった場所にMeshが作成されるスクリプト
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter), typeof(MeshCollider))]
public class CreateMeshByMouse : MonoBehaviour
{
private List<Vector2> centerPoints;
[SerializeField] float appendDistance = 0.5f;
@daichi-takezawa
daichi-takezawa / CreateMeshByMouse.cs
Last active April 29, 2020 08:38
頂点の座標をVector2から3へ変換
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter), typeof(MeshCollider))]
public class CreateMeshByMouse : MonoBehaviour
{
private List<Vector3> centerPoints;
[SerializeField] float appendDistance = 0.5f;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter), typeof(MeshCollider))]
public class BackCreateMeshByMouse : MonoBehaviour
{
private List<Vector3> centerPoints;
[SerializeField] float appendDistance = 0.5f;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter), typeof(MeshCollider))]
public class CreateMeshByMouseFront : MonoBehaviour
{
private CreateTopMesh createTopMesh;
private CreateBottomMesh createBottomMesh;
private List<Vector3> centerPoints;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter), typeof(MeshCollider))]
public class CreateMeshByMouseBack : MonoBehaviour
{
private List<Vector3> centerPoints;
[SerializeField] float appendDistance = 0.5f;