Exemple #1
0
        public override void _Ready()
        {
            ReloadTimer.OneShot  = true;
            ReloadTimer.WaitTime = ReloadingSpeed;

            ComponentState = new Dictionary <string, MechanicalState> {
                { "Magazine", Magazine.MechanicalStatus },
                { "Barrel", Barrel.MechanicalStatus }
            };

            Magazine.Connect("OperationalStatusUpdate", this, nameof(_on_WeaponClip_StatusUpdate));
            Barrel.Connect("OperationalStatusUpdate", this, nameof(_on_Barrel_StatusUpdate));
        }