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));
            //}
        }
    }
예제 #2
0
    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);
 }
예제 #4
0
    // 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;
    }
예제 #5
0
 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]);
             }
         }
     }
 }
예제 #6
0
    // 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;
    }
예제 #7
0
 public void OnClick()
 {
     targetWindow.SetActive(true);
     StageSelectManager.MyInit();
     StageSelectManager.Draw();
 }
 private void Awake()
 {
     instance = this;
 }
예제 #9
0
 // Use this for initialization
 void Start()
 {
     ssm  = FindObjectOfType <StageSelectManager>();
     caip = FindObjectOfType <ChangeActiveInfoPanel>();
     cci  = FindObjectOfType <changeClearInfo>();
 }
예제 #10
0
 // Update is called once per frame
 void OnClick()
 {
     StageSelectManager.isBoardChange = !StageSelectManager.isBoardChange;
     StageSelectManager.Draw();
 }
예제 #11
0
 // Use this for initialization
 void Awake()
 {
     StageSelectManager.StageManagerLoader();
 }
예제 #12
0
 public void OnClick()
 {
     DataBase.isRev = !DataBase.isRev;
     StageSelectManager.MyInit();
     StageSelectManager.Draw();
 }
예제 #13
0
 // Use this for initialization
 void Start()
 {
     stageSelectManager = GameObject.Find("StageSelectManager").GetComponent <StageSelectManager>();
     arrowSprite        = GetComponent <SpriteRenderer>();
 }
예제 #14
0
 public void OnClick()
 {
     StageSelectManager.StageRotate(vector);
 }
예제 #15
0
 // Use this for initialization
 void Start()
 {
     stageSelectManager = StageSelectManager.GetStageSelectManager();
     stageNoLabel.GetComponent <Text>().text = SceneManager.GetActiveScene().name;
 }