Ejemplo n.º 1
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;
    }
Ejemplo n.º 2
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);
    }