Exemple #1
0
 // Use this for initialization
 void Start()
 {
     time     = 0;
     winTime  = 0;
     baseTime = 0;
     gameSet  = true;
     flag     = true;
     pause    = playerObj1.GetComponent <PlayerController>();
     hp1      = playerObj1.GetComponent <HPDirectorScript>();
     hp2      = playerObj2.GetComponent <HPDirectorScript>();
     timer    = timerObj.GetComponent <TimerScript>();
     getGame  = gameDirecter.GetComponent <GetGameScript>();
     directer = gameDirecter.GetComponent <GameDirector>();
     fade     = fadePanel.GetComponent <FadeScript>();
     winChar  = 0;
     test     = 60.0f;
 }
    // Use this for initialization
    void Start()
    {
        timer     = 0;
        gameState = 0;
        player1.transform.position = new Vector3(-3, -4.2f, gameObject.transform.position.z);
        player2.transform.position = new Vector3(3, -1.5f, gameObject.transform.position.z);
        textScript   = GameObject.Find("TextFactory").GetComponent <TextGenerator>();
        sceneManager = GameObject.Find("SceneManager").GetComponent <SceneManagement>();

        HP1 = player1.GetComponent <HPDirectorScript>();
        HP2 = player2.GetComponent <HPDirectorScript>();

        initPos1 = player1.transform.position;
        initPos2 = player2.transform.position;

        comboScript = GetComponent <ComboScript>();
        gameScript  = GetComponent <GetGameScript>();
    }
Exemple #3
0
    // Use this for initialization
    void Start()
    {
        loadCanvas.SetActive(true);
        audio = this.GetComponent <AudioSource>();
        fade  = this.GetComponent <SceneFade>();
        timer = butDir.GetComponent <TimerScript>();

        Round  = this.GetComponent <RoundDirector>();
        Fight  = this.GetComponent <FightDirector>();
        Finish = this.GetComponent <FinishScript>();
        Winner = this.GetComponent <WinnerDirector>();
        TimeUp = this.GetComponent <TimeUPDirector>();

        Director = this.GetComponent <GameDirector>();
        GetGame  = this.GetComponent <GetGameScript>();

        SMane = this.GetComponent <SceneMane>();

        player1 = GameObject.FindGameObjectWithTag("P1");
        player2 = GameObject.FindGameObjectWithTag("P2");

        PController1P = player1.GetComponent <PlayerController>();
        PController2P = player2.GetComponent <PlayerController>();

        intentions.Add(GameObject.Find("AoiIntentionObj").GetComponent <AIIntention>());
        intentions.Add(GameObject.Find("HikariIntentionObj").GetComponent <AIIntention>());
        intentions.Add(GameObject.Find("XionIntentionObj").GetComponent <AIIntention>());
        intentions.Add(GameObject.Find("ChloeIntentionObj").GetComponent <AIIntention>());
        intentions.Add(GameObject.Find("MariIntentionObj").GetComponent <AIIntention>());
        intentions.Add(GameObject.Find("ShiroganeIntentionObj").GetComponent <AIIntention>());

        fade.ImageAlpha = 1;

        sounds.Add(round1);
        sounds.Add(round2);
        sounds.Add(round3);
    }
Exemple #4
0
    // Use this for initialization
    void Start()
    {
        for (int i = 0; i < 2; i++)
        {
            //キャラクター設定
            switch (InScript.Fighter(i).tag)
            {
            case "P1":
                player1 = InScript.Fighter(0);
                SetPlayerState(player1.name, P1Image, P1Name, player1);
                player1Controller             = player1.GetComponent <PlayerController>();
                player1Controller.CanControll = false;
                break;

            case "P2":
                player2 = InScript.Fighter(1);
                SetPlayerState(player2.name, P2Image, P2Name, player2);
                player2Controller             = player2.GetComponent <PlayerController>();
                player2Controller.CanControll = false;
                break;
            }
        }

        HP1 = player1.GetComponent <HPDirectorScript>();
        HP2 = player2.GetComponent <HPDirectorScript>();

        Guard1 = player1.GetComponent <GuardScript>();
        Guard2 = player2.GetComponent <GuardScript>();

        initPos1 = player1.transform.position;
        initPos2 = player2.transform.position;
        player1.transform.position = initPos1;
        player2.transform.position = initPos2;

        //comboScript = GetComponent<ComboScript>();
        gameScript = GetComponent <GetGameScript>();
    }