public CMagazine GetMagazine() { IntPtr cPtr = testPINVOKE.CWeapon_GetMagazine(swigCPtr); CMagazine ret = (cPtr == IntPtr.Zero) ? null : new CMagazine(cPtr, false); return(ret); }
protected virtual void Start() { magazine = GetComponent <CMagazine>(); }
public void SetMagazine(CMagazine m) { testPINVOKE.CWeapon_SetMagazine(swigCPtr, CMagazine.getCPtr(m)); }
internal static HandleRef getCPtr(CMagazine obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }