示例#1
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;
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        if (this.GetComponent <AudioSource>() != null)
        {
            audio = this.GetComponent <AudioSource>();
        }

        SMana      = manager.GetComponent <SceneMane>();
        SFadeScene = manager.GetComponent <SceneFade>();
        SFadeBack  = this.GetComponent <SceneFade>();

        SFadeScene.ImageAlpha = 1;
        SFadeBack.ImageAlpha  = 0;
        SFadeBack.FFlag       = true;
    }
示例#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);
    }