This file contains 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
public class Hoge : MonoBehaviour | |
{ | |
private int _frame = 0; | |
// Use this for initialization | |
void Start () | |
{ | |
} | |
This file contains 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 OnParticleCollision(GameObject objct){ | |
//衝突したオブジェクトタグがenemyだった場合、オブジェクトを破壊する | |
if(obj.gameObject.tag == "enemy"){ | |
Object.Destroy(gameObject); | |
} | |
} |
This file contains 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
Shader "Custom/Snow" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
_Snow("Snow", Range(0,2))= 0.0 | |
} | |
SubShader { | |
Tags { } |
This file contains 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; | |
using System.Collections; | |
public class Backscroll : MonoBehaviour | |
{ | |
void Update () { | |
transform.Translate (-0.1f, 0, 0); | |
if (transform.position.x < -13.8f ) { | |
transform.position = new Vector3 (13.8f, 0, 0); | |
} |
This file contains 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
//RPG Maker MV Parameter | |
* @param Name | |
* @desc Desc | |
* Default: true or Number or String | |
* @default true or Number or String |
This file contains 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
//============================================================================= | |
// カテゴリ分け用 | |
//============================================================================= | |
/*: | |
* @plugindesc ==================== BATTLE ==================== | |
* @author maco1028 | |
* | |
*/ | |
/*:ja |
This file contains 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; | |
using System.Collections; | |
public class CharactorMove : MonoBehaviour { | |
public float walkSpeed = 7.0f; //歩く速度 | |
public float gravity = 10.0f;//重力加速度 | |
private Vector3 velocity;//現在の速度 | |
void Update () { | |
//CharacterControllerを取得 |
This file contains 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; | |
using System.Collections; | |
public class Destory_obj : MonoBehaviour { | |
public GameObject obj; | |
void Awake(){ | |
InvokeRepeating ("Create", Random.Range(3.0f,5.0f), Random.Range(3.0f,5.0f)); | |
} |
This file contains 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
public int anime_num = 0; anime_num = Random.Range (1,5); switch(anime_num) { case 1: print("Atack1"); break; case 2: print("Run"); break; case3: print("walk"); break; |