コード例 #1
0
 void Awake()
 {
     fireMech    = GetComponent <FireMechanism>();
     ammoSys     = GetComponent <AmmoSystem>();
     drawRelease = GetComponent <DrawReleaseScript>();
     reloadable  = GetComponent <IReloadable>();
 }
コード例 #2
0
    void Awake()
    {
        initReserve = reserve;
        mag         = magSize;

        animator = GetComponent <Animator>();
        fireMech = GetComponent <FireMechanism>();
    }
コード例 #3
0
 void Awake()
 {
     fireMech    = GetComponent <FireMechanism>();
     ammoSys     = GetComponent <AmmoSystem>();
     recoil      = GetComponent <RecoilBase>();
     scopeStatus = GetComponent <IScopeStatus>();
     scope       = GetComponent <ScopeBase>();
     reloadable  = GetComponent <IReloadable>();
 }
コード例 #4
0
 void Awake()
 {
     fireMech = GetComponent <FireMechanism>();
 }
コード例 #5
0
 public void AssignHeldWeapon()
 {
     fireMech  = weaponPos.GetComponentInChildren <FireMechanism>();
     reloadSys = weaponPos.GetComponentInChildren <ReloadSystem>();
 }