private void Start() { _collider = GetComponent <Collider>(); _playerMovementController = GetComponent <PlayerMovementController>(); transform.position = PlayerSpawningController.GetSpawningPoint(GetComponent <PlayerMovementController>().PlayerId); }
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>(); }