示例#1
0
    //int l =100;
    //int h = 20;
    // Use this for initialization
    void Start()
    {
        mgmt = GetComponent<GameManagement>();
        ship1 = mgmt.GetShip(1);
        ship2 = mgmt.GetShip(2);
        ship3 = mgmt.GetShip(3);
        ship1Script = ship1.GetComponent<Ship>();
        ship2Script = ship2.GetComponent<Ship>();
        ship3Script = ship3.GetComponent<Ship>();

        cur1Health = ship1Script.GetHealth();
        cur2Health = ship2Script.GetHealth();
        cur3Health = ship3Script.GetHealth();
        maxHealth = 6;
    }