// Use this for initialization void Start() { moveSwitch = GameObject.FindObjectOfType <MoveSwitch>(); mapLocation = gameObject.GetComponent <MapLocation>(); newPlayerQuadList = new List <int>(); newEnemyQuadList = new List <int>(); }
// Use this for initialization void Start() { Map = gameObject; moveSwitch = moveSwitch = GameObject.FindObjectOfType <MoveSwitch>(); present = false; offset = (Vector3.right * rightPush) + (Vector3.up * upPush) + (Vector3.forward * forwardPush) + (Vector3.down * downPush); allRows = Map.GetComponentsInChildren <Rows>(); }
// Use this for initialization void Start() { mapEventDriver = gameObject.GetComponent <MapEventDriver>(); nametag = "ty"; playerQuadList = new List <int>(); enemyQuadList = new List <int>(); moveSwitch = GameObject.FindObjectOfType <MoveSwitch>(); mapLocation = gameObject.GetComponent <MapLocation>(); mapEventDriver.AssignFactors(nametag, mapLocation, moveSwitch); }
public override void OnInspectorGUI() { //値の変更をする Undo.RecordObject(target, "moveswich"); // target は処理コードのインスタンスだよ! 処理コードの型でキャストして使ってね! MoveSwitch moveswich = target as MoveSwitch; // -- カスタム表示 // -- 床とスイッチの紐づけ -- moveswich.FlagNo = EditorGUILayout.IntField("移動床との紐づけ", moveswich.FlagNo); //値の変更を保存 EditorUtility.SetDirty(moveswich); }
// Use this for initialization // m for menu void Start() { // startMenus.AddRange(GameObject.FindGameObjectsWithTag("StartMenus")); mapLocation = new List <MapLocation>(); mapLocation.AddRange(GameObject.FindObjectsOfType <MapLocation>()); menu = GameObject.Find("Menu"); moveSwitch = moveSwitch = GameObject.FindObjectOfType <MoveSwitch>(); fieldButtons = new List <Button>(); battleButtons = new List <Button>(); startMenus = new List <GameObject>(); startMenus.AddRange(GameObject.FindGameObjectsWithTag("StartMenus")); fieldButtons.AddRange(GameObject.Find("MainSectionSMIF").GetComponentsInChildren <Button>()); GameObject.Find("Ext").SetActive(false); battleButtons.AddRange(GameObject.Find("StartMenuInBattle").GetComponent <BattleMenu>().GetComponentsInChildren <Button>()); CreateArrayField(4, 2); mySize = battleButtons.Count; ExitMenu(); StartCoroutine(IndentifyMap()); mapInfo.onClick.AddListener(DoSomething); menu.SetActive(false); }
//public Vector3 startPoint; // Use this for initialization void Start() { moveSwitch = moveSwitch = GameObject.FindObjectOfType <MoveSwitch>(); rb = gameObject.GetComponent <Rigidbody>(); //startPoint = transform.position; }
// Use this for initialization void Start() { moveSwitch = moveSwitch = GameObject.FindObjectOfType <MoveSwitch>(); rb = gameObject.GetComponent <Rigidbody>(); }
public void AssignFactors(string tag, MapLocation map, MoveSwitch ms) { tileNameTag = tag; moveSwitch = ms; mapLocation = map; }
// Use this for initialization void Start() { moveSwitch = GameObject.FindObjectOfType <MoveSwitch>(); }