示例#1
0
        /// <summary>
        /// Awake is called when the script instance is being loaded.
        /// </summary>
        protected virtual void Awake()
        {
            audioSource     = GetComponent <AudioSource>();
            weaponReloading = GetComponent <IWeaponReloading>();
            weaponAnimator  = GetComponent <IWeaponAnimator>();

            if (spreadProperties != null)
            {
                spreadProperties.Initialize(firePoint);
            }
        }
 /// <summary>
 /// Start is called on the frame when a script is enabled just before any of the Update methods are called the first time.
 /// </summary>
 protected virtual void Start()
 {
     attackCallbacks = behaviour.GetAIAttackSystem();
     weaponReloading = behaviour.GetAIAttackSystem().GetReloadSystem();
 }