Skip to content

Instantly share code, notes, and snippets.

View tubakihimeLoveHate's full-sized avatar

tubakihimeLoveHate

View GitHub Profile
@tubakihimeLoveHate
tubakihimeLoveHate / CreateRayPoint37_1.cs
Created February 13, 2022 23:15
[クリエイティブ機能作ってみた記事]配置プレビュー付きコード
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CreateRayTarget : MonoBehaviour
{
[SerializeField]
private float distance = 20.0f;
[SerializeField]
private GameObject clone;
@tubakihimeLoveHate
tubakihimeLoveHate / CreateRayPoint.cs
Last active February 7, 2022 23:01
clickした先で衝突判定があった場合cloneを生成
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CreateRayPoint : MonoBehaviour
{
[SerializeField]
private float distance = 20.0f;
[SerializeField]
private GameObject clone;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class VerticalOnlyCamera : MonoBehaviour
{
// This Camera move only verticle.
// So camera transform in player children.
// このカメラは縦の視点移動のみです。利用する場合はこのクラスをアタッチするカメラをプレイヤーの子にしてください。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PinSystemOverlay : MonoBehaviour
{
private Camera targetCamera; // 映っているか判定するカメラへの参照
private Transform canvas;
[SerializeField]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CreatePinPoint : MonoBehaviour
{
[SerializeField]
private float distance = 20.0f;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FireController : MonoBehaviour
{
AnimatorStateInfo state;
Animator animator;
public GameObject fireEffect;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraControllerv2 : MonoBehaviour
{
[SerializeField]
private Transform player;
private Vector3 offset;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class ControllerUI : MonoBehaviour,IBeginDragHandler,IDragHandler,IEndDragHandler
{
    [SerializeField]//基礎スピード
using UnityEngine;
using UnityEngine.EventSystems;
public class ControllerUI : MonoBehaviour,IBeginDragHandler,IDragHandler,IEndDragHandler
{
public void OnBeginDrag(PointerEventData eventData){
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class ControllerUI : MonoBehaviour,IBeginDragHandler,IDragHandler,IEndDragHandler{
[SerializeField]
float speed = 3f;
//歩行時=1,走行時=2
float pulusSpeed=1;