//Methods public void doShoot() { if (uiShootController) { uiShootController.setAmmoQuantity( (int)_ammoInClip.getValue() ); } internalDoShoot(); }
//-Implementation protected void Start() { _ammoInClip = new LimitedFloat(ClipSettings); _stateMachine = new SimpleStateMachine <State>(State.Idle); uiShootController = GetComponent <UIShootController>(); if (uiShootController) { uiShootController.setClipStats( (int)_ammoInClip.getValue(), (int)_ammoInClip.getValue() ); } }
//Methods //-API public float getHitPoints() { return(_hitPoints.getValue()); }