Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        // prefabから生成
        aoiModel     = (GameObject)Resources.Load("Model/Aoi");
        aoiModel2    = (GameObject)Resources.Load("Model/Aoi2");
        hikariModel  = (GameObject)Resources.Load("Model/Hikari");
        hikariModel2 = (GameObject)Resources.Load("Model/Hikari2");

        select        = gameObject.GetComponent <CharacterSelect>();
        gameData      = GameObject.Find("GameSystem").GetComponent <DataRetention>();
        sceneFlag1    = true;
        sceneFlag2    = true;
        controlFlag1P = true;
        controlFlag2P = true;
        rect          = GetComponent <RectTransform>();
        // オフセット値をアイコンのサイズの半分で設定
        offset = new Vector2(rect.sizeDelta.x / 2f, rect.sizeDelta.y / 2f);

        if (controller > 0)
        {
            controllerName = Input.GetJoystickNames()[controller - 1];
        }

        pvcController = 0;
    }
Esempio n. 2
0
    void Awake()
    {
        datas = GameObject.Find("GameSystem").GetComponent <DataRetention>();

        //勝者キャラを生成
        CreateWinCharcter();
    }
Esempio n. 3
0
    void Start()
    {
        //Resourcesからモデルを拝借
        aoiModel       = (GameObject)Resources.Load("Model/Aoi");
        hikariModel    = (GameObject)Resources.Load("Model/Hikari");
        xionModel      = (GameObject)Resources.Load("Model/Xion");
        chloeModel     = (GameObject)Resources.Load("Model/Chloe");
        shiroganeModel = (GameObject)Resources.Load("Model/Shirogane");
        mariModel      = (GameObject)Resources.Load("Model/Mari");

        frame1        = GameObject.FindGameObjectWithTag("frame1");
        frame2        = GameObject.FindGameObjectWithTag("frame2");
        start         = GameObject.Find("StartImage").GetComponent <StartGameAnime>();
        gameData      = GameObject.Find("GameSystem").GetComponent <DataRetention>();
        sceneFlag1    = true;
        sceneFlag2    = true;
        controlFlag1P = true;
        controlFlag2P = true;
        stayFlag      = true;
        rect          = GetComponent <RectTransform>();
        menuFlag      = GameObject.Find("SelectSceneObj").GetComponent <MenuEvent>();
        enter         = GameObject.Find("SelectSceneObj").GetComponent <CancelScript>();
        controlFlag   = true;
        player_One    = GameObject.FindGameObjectWithTag("icon1");
        player_Two    = GameObject.FindGameObjectWithTag("icon2");
        // オフセット値をアイコンのサイズの半分で設定
        offset = new Vector2(rect.sizeDelta.x / 2f, rect.sizeDelta.y / 2f);

        if (controller > 0)
        {
            controllerName = Input.GetJoystickNames()[controller - 1];
        }

        pvcController = 0;
    }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     if (this.GetComponent <AudioSource>() != null)
     {
         audio = this.GetComponent <AudioSource>();
     }
     scene = this.GetComponent <SceneManagement>();
     fade  = GameObject.Find("FadePanel").GetComponent <FadeScript>();
     if (SceneManager.GetActiveScene().name == "SelectScene")
     {
         menu  = GameObject.Find("SelectSceneObj").GetComponent <MenuEvent>();
         enter = GameObject.Find("SelectSceneObj").GetComponent <CancelScript>();
         //select = GameObject.Find("P1Image").GetComponent<CharacterSelect>();
         //select2 = GameObject.Find("P2Image").GetComponent<CharacterSelect>();
     }
     if (SceneManager.GetActiveScene().name == "PlayMenuScene")
     {
         datare = GameObject.Find("GameSystem").GetComponent <DataRetention>();
     }
     if (SceneManager.GetActiveScene().name == "PlayScene" || SceneManager.GetActiveScene().name == "PlayMenuScene")
     {
         sys = GameObject.Find("GameSystem").GetComponent <PlayMenuSystem>();
     }
     if (SceneManager.GetActiveScene().name == "PlayMenuScene")
     {
         sys = GameObject.Find("PlayMenuSystemObj").GetComponent <PlayMenuSystem>();
     }
     //Debug.Log("sys:" + sys);
     //Debug.Log("datare:" + datare);
     sceneFlagMenu = false;
 }
Esempio n. 5
0
    // Use this for initialization
    void Awake()
    {
        if (GameObject.Find("GameSystem") != null)
        {
            datas = GameObject.Find("GameSystem").GetComponent <DataRetention>();
        }

        //キャラクター生成
        JudgeCreateChar();
    }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     dr             = GameObject.Find("GameSystem").GetComponent <DataRetention>();
     sm             = GameObject.Find("GameSystem").GetComponent <SceneManagement>();
     selectMenuNum  = (int)DataRetention.GameMode.SIZE;
     controllerName = Input.GetJoystickNames()[0];
     if (controllerName != "Arcade Stick (MadCatz FightStick Neo)")
     {
         controllerName = "";
     }
     ChangeSprite();
 }
Esempio n. 7
0
    // Use this for initialization
    void Start()
    {
        if (this.GetComponent <AudioSource>() != null)
        {
            audio = this.GetComponent <AudioSource>();
        }

        SMana  = manager.GetComponent <SceneMane>();
        SFade  = manager.GetComponent <SceneFade>();
        TAnim  = this.GetComponent <TextAnim>();
        datums = GameObject.Find("GameSystem").GetComponent <DataRetention>();

        SFade.ImageAlpha = 1;
    }
Esempio n. 8
0
    // Use this for initialization
    void Start()
    {
        player1 = GameObject.FindGameObjectWithTag("P1");
        player2 = GameObject.FindGameObjectWithTag("P2");

        timer = ButDir.GetComponent <TimerScript>();
        fade  = this.GetComponent <FadeImage>();

        WDir  = this.GetComponent <WinnerDirector>();
        TUDir = this.GetComponent <TimeUPDirector>();

        datas = GameObject.Find("GameSystem").GetComponent <DataRetention>();

        winner.enabled = false;
        win.enabled    = false;
        draw.enabled   = false;

        winner.color = white;
        win.color    = white;
        draw.color   = white;
    }
Esempio n. 9
0
 // Use this for initialization
 void Start()
 {
     datas = GameObject.Find("GameSystem").GetComponent <DataRetention>();
 }