Esempio n. 1
0
    private void StartTurn()
    {
        _botTimer = Random.Range(1f, 2f);

        var player     = _players[_activePlayer];
        var playerName = player.GetName();
        var id         = player.GetPublicId();

        followingCamera.SetTarget(player.transform);

        walkInfo.gameObject.SetActive(false);

        playerIntroduction.text = playerIntroductionTemplate.text
                                  .Replace("{{prefix}}", player.IsBot() ? "Bot" : "Player")
                                  .Replace("{{id}}", id.ToString())
                                  .Replace("{{name}}", playerName);

        remainingFields.text = "";

        RenderHearts();

        if (player.IsBot())
        {
            return;
        }

        pressSpace.SetActive(true);
    }
Esempio n. 2
0
 private void Start()
 {
     followingCamera.SetTarget(rotationTarget);
     followingCamera.RotateAround();
 }