private void Awake() { if (instance == null) { instance = this; gm = GameManager.gameManager; gm.BackToStageSelect(); //stageInfos = new StageInformation[5]; maps = new List <Map>(); for (int i = 0; i < Resources.LoadAll <Map>(gm.MapFolderPath).Length; i++) { maps.Add(Resources.LoadAll <Map>(gm.MapFolderPath)[i]); } //DirectoryInfo di = new DirectoryInfo(Resources.LoadAll<Map>(gm.MapFolderPath)); //foreach(FileInfo f in di.GetFiles()) //{ // maps.Add(Resources.Load<Map>(f.ToString())); //} //for (int i = 0; i < stageInfos.Length; i++) //{ // stageInfos[i] = Resources.Load<StageInformation>(gm.StageInformationFolderPath+"/"+(i+1)); //} } }
private StageSelectManager.SelectStage selectStage; //選択中ステージ // Use this for initialization private void Start() { tf = GetComponent <Transform>(); nowPos = tf.position; defaultPosition = tf.position; startPosition = tf.position; ssm = GameObject.Find("StageSelectManager").GetComponent <StageSelectManager>(); selectStage = StageSelectManager.SelectStage.NOT_SELECT; }
private void Awake() { if (Instance != null) { Destroy(gameObject); return; } Instance = this; GameObject.DontDestroyOnLoad(gameObject); }
// Use this for initialization private void Start() { stageSelectManager = GameObject.Find("StageSelectManager").GetComponent <StageSelectManager>(); this.audioClip = new CustomAudioClip[(int)AudioList.AUDIO_MAX]; this.audioClip[0].Clip = Resources.Load("Audio/SE/Button_No", typeof(AudioClip)) as AudioClip; this.audioClip[0].Vol = 1.0f; this.sourceAudio = this.gameObject.AddComponent <SourceAudio>(); this.sourceAudio.m_Audio = this.audioClip; }
void StageSelectButtonInitialize() { if (stageSelectManager == null) { stageSelectManager = StageSelectManager.GetStageSelectManager(); if (stageSelectManager != null) { for (int i = 0; i < stageSelectManager.stage.Count; i++) { GameObject buttonObject; buttonObject = Instantiate(StageSelectButtonPrefab); buttonObject.transform.SetParent(StageSelectButtonCanvas.transform); buttonObject.GetComponent <StageSelectButton>().Initialize(stageSelectManager, stageSelectManager.stage[i]); } } } }
// Use this for initialization private void Start() { stageSelectManager = GameObject.Find("StageSelectManager").GetComponent <StageSelectManager>(); stageSelectPlayer = GameObject.Find("StageSelectPlayer").GetComponent <StageSelectPlayer>(); swayDegreeMax = stageSelectManager.swayDegreeMax; swayDegreeMin = stageSelectManager.swayDegreeMin; swayTime1 = stageSelectManager.swayTime1; swayTime2 = stageSelectManager.swayTime2; swayTime3 = stageSelectManager.swayTime3; swaySpeed = 0; swayStatus = SWAYSTATUS.NOT_SWAY; defaultPosition = tf.position; defaultRotation = tf.rotation; nowPos = tf.position; clipPosition = tf.parent.position; this.audioClip = new CustomAudioClip[(int)AudioList.AUDIO_MAX]; this.audioClip[0].Clip = Resources.Load("Audio/SE/Button_Yes", typeof(AudioClip)) as AudioClip; this.audioClip[0].Vol = 1.0f; this.sourceAudio = this.gameObject.AddComponent <SourceAudio>(); this.sourceAudio.m_Audio = this.audioClip; }
public void OnClick() { targetWindow.SetActive(true); StageSelectManager.MyInit(); StageSelectManager.Draw(); }
private void Awake() { instance = this; }
// Use this for initialization void Start() { ssm = FindObjectOfType <StageSelectManager>(); caip = FindObjectOfType <ChangeActiveInfoPanel>(); cci = FindObjectOfType <changeClearInfo>(); }
// Update is called once per frame void OnClick() { StageSelectManager.isBoardChange = !StageSelectManager.isBoardChange; StageSelectManager.Draw(); }
// Use this for initialization void Awake() { StageSelectManager.StageManagerLoader(); }
public void OnClick() { DataBase.isRev = !DataBase.isRev; StageSelectManager.MyInit(); StageSelectManager.Draw(); }
// Use this for initialization void Start() { stageSelectManager = GameObject.Find("StageSelectManager").GetComponent <StageSelectManager>(); arrowSprite = GetComponent <SpriteRenderer>(); }
public void OnClick() { StageSelectManager.StageRotate(vector); }
// Use this for initialization void Start() { stageSelectManager = StageSelectManager.GetStageSelectManager(); stageNoLabel.GetComponent <Text>().text = SceneManager.GetActiveScene().name; }