Entries from 2015-09-14 to 1 day
カメラを振動させる Unity Tips and Tricks: Camera Shake using UnityEngine; using System.Collections; public class CameraShake : MonoBehaviour { private Transform myTransform; private const float duration = 0.5f; private const float magnitud…
衝突判定、衝突した時に呼ばれる関数www40.atwiki.jpindie-du.hatenablog.com
素材は、Resourcesにまとめて、スクリプトから名前を指定して呼び出す。 using UnityEngine; using System.Collections; using UnityEngine.UI; public class ResourceText : MonoBehaviour { private GameObject ImageObj; private const string ImageObjPa…
RequireComponentによるコンポーネントの追加忘れ防止 - Neareal
docs.unity3d.com
void OnDifficultyChanged (GameController.GameDifficulty difficulty) { string txt; switch (difficulty) { case GameController.GameDifficulty.Normal: txt = "Normal"; break; case GameController.GameDifficulty.Hard: txt = "Hard"; break; case Ga…
【Unity初心者】指定した秒数後にメソッドを呼び出す
シーンの文字列を指定する呼び出し方ではない方法 リスタートと次の面のロード - Unity雑記 Application.LoadLevel(Application.loadedLevel + 1);