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; | |
namespace MasterData | |
{ | |
public class Item | |
{ | |
private static Entity_item1 entity_item1; | |
public static void Init() | |
{ |
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 System; | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Data | |
{ | |
/// <summary> | |
/// ItemListのエクセルデータ設定用クラス |
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 System; | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Manager.Excel | |
{ | |
/// <summary> | |
/// Itemのエクセルデータ設定用クラス |
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
// foreach (var strArray in SaveData.Key.GetArray ()) { | |
// GameObject flageList = Instantiate (Resources.Load ("FlageList")) as GameObject; | |
// flageList.GetComponent<RectTransform> ().SetParent (transform, false); | |
// flageList.GetComponent<RectTransform> ().name = strArray.name; | |
// flageList.GetComponent<CreateNode> ().namelist = strArray.data; | |
// flageList.SetActive (false); | |
// } | |
using UnityEngine; | |
using System.Collections; |
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 AwakeStartUpdate : MonoBehaviour | |
{ | |
void Awake () | |
{ | |
string parentName = ""; | |
if (transform.parent) { | |
parentName = transform.parent.name + "_"; |
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 Find : MonoBehaviour { | |
void Start () | |
{ | |
FindBytransform (); | |
FindBytransformAll (); | |
FindByGetChild (); |
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 UnityEditor; | |
public sealed class CustomImporter : AssetPostprocessor | |
{ | |
public override int GetPostprocessOrder() | |
{ | |
return 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
using UnityEngine; | |
using System.Collections; | |
public class FixedAspectRatio : MonoBehaviour | |
{ | |
public Camera cam = null; // アスペクト比を固定化するカメラ | |
public float width = 1920.0f; // 横幅 (目標解像度) | |
public float height = 1080.0f; // 高さ (目標解像度) | |
private Rect camRect = new Rect(); |
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; | |
using System.Collections.Generic; | |
public static class MyResources | |
{ | |
public static ClassAndPathName[] GetPathToArray() | |
{ | |
List<ClassAndPathName> path = new List<ClassAndPathName> (); | |
path.Add (new ClassAndPathName ("Sprite", "Sprites")); |
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; | |
using System.Collections.Generic; | |
public class NameCreatorSample : MonoBehaviour | |
{ | |
void Start () | |
{ | |
AudioManager.Instance.PlayBGM (BGMName.thunderstorm1); | |
SpriteLoad (); |
OlderNewer