private void Start()
    {
        var lossGameText = $"{bikeMovement.GetPlayerName()} WINS!";

        mainText.text    = lossGameText;
        shadowText.text  = lossGameText;
        shadowText.color = bikeMovement.GetAccentColor();
    }
Exemplo n.º 2
0
    public void StartStream(BikeMovement bikeGO)
    {
        createdBy          = bikeGO;
        transform.position = bikeGO.transform.position;
        startingPosition   = bikeGO.transform.position;
        this.attachedTo    = bikeGO.gameObject;
        var playerName = bikeGO.GetPlayerName();

        SetTrailColor(bikeGO.GetAccentColor());
        GetComponent <WallCollision>().SetKillfeedName(playerName);
    }