Пример #1
0
    private void Start()
    {
        _collider = GetComponent <Collider>();
        _playerMovementController = GetComponent <PlayerMovementController>();

        transform.position = PlayerSpawningController.GetSpawningPoint(GetComponent <PlayerMovementController>().PlayerId);
    }
Пример #2
0
    private void Respawn()
    {
        transform.position = PlayerSpawningController.GetSpawningPoint();

        GetComponent <Rigidbody>().velocity = Vector3.zero;

        Instantiate(_respawn, transform.position, Quaternion.identity);
    }
    public void Awake()
    {
        _instance = this;

        Cooldown = new List <int>();
    }