private void Start() { if (_ShootingPlayer == null) { _ShootingPlayer = this.gameObject.GetComponent <Controller_Shooting>(); } Restart._Restart.OnRestart += Reset; started = true; ammo = Ammo.Bumeran; ammunition = 1; }
private void Awake() { if (_ShootingPlayer == null) { _ShootingPlayer = this.gameObject.GetComponent <Controller_Shooting>(); Debug.Log("Shooting es nulo"); } else { Destroy(this); } }