Beispiel #1
0
    void Awake()
    {
        Data          = GameObject.Find("Data(Clone)");
        DataScript    = Data.GetComponent <Data>();
        Player1_Class = DataScript.GetPlayer1P();
        Player2_Class = DataScript.GetPlayer2P();
        ExitText.text = " ";
        ExitImage     = GameObject.Find("ExitImage");
        ExitImage.SetActive(false);
        KeyButton.SetActive(false);

        Player1_BackGround_Script = Player1_BackGround.GetComponent <PlayerField>();
        Player2_BackGround_Script = Player2_BackGround.GetComponent <PlayerField>();
        Player1_BackGround_Script.SetSkill_1(Skill1P_1);
        Player1_BackGround_Script.SetSkill_2(Skill1P_2);
        Player1_BackGround_Script.SetSkill_3(Skill1P_3);
        Player2_BackGround_Script.SetSkill_1(Skill2P_1);
        Player2_BackGround_Script.SetSkill_2(Skill2P_2);
        Player2_BackGround_Script.SetSkill_3(Skill2P_3);

        Player1_BackGround_Script.SetObject(-1, Player1_Class, Player, enemy, HP);
        Player2_BackGround_Script.SetObject(1, Player2_Class, Player, enemy, HP);
    }