コード例 #1
0
    private void Start()
    {
        if (_ShootingPlayer == null)
        {
            _ShootingPlayer = this.gameObject.GetComponent <Controller_Shooting>();
        }

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