Exemplo n.º 1
0
    private void Awake()
    {
        if (instancia == null)
        {
            instancia = this;
        }
        else
        {
            Debug.LogError("Ya existe un SpreadSystem en la escena");
        }

        reco = this.gameObject.GetComponent <RecoilAffect>();
    }
Exemplo n.º 2
0
 void Start()
 {
     //  crosshairPreset = preset.none;
     Wbase  = this.gameObject.GetComponent <WeaponBase>();
     recoil = Wbase.RecoilAfect;
 }