示例#1
0
    public void SpawnShip(int lane)
    {
        GameObject ship = Instantiate(prefShip, laneVector[lane], this.transform.rotation, this.transform);

        ship.SendMessage("Move", shipSpeed);
        ship.SendMessage("SetPointValue", 1);

        endscreen.AddMaxPoints(ship.GetComponent <NPCShipBehaviour>().getPointValue());
        specialsScript.SendMessage("UpdateAllyArray");
        StartCoroutine(SpawnTriangle(lane));
    }