public void SetTier(int tier) { thisTier = tier; Material mat = thisShootingTargetReserveAdaptor.GetMaterialForTier(tier); TargetData targetData = thisShootingTargetReserveAdaptor.GetTargetDataForTier(tier); TargetTierData tierData = new TargetTierData( mat, targetData ); SetAllTargetTier( tierData ); SetAllDestroyedTargetTier( tierData ); }
void SetAllTargetTier( TargetTierData tierData ) { foreach (IShootingTarget target in thisSceneObjects) { if (!target.IsActivated()) { target.SetTier( tierData ); } else { target.SetTargetTierDataOnQueue( tierData ); } } }
void SetAllDestroyedTargetTier( TargetTierData tierData ) { foreach (IDestroyedTarget target in thisDestroyedTargetReserve.GetTargets()) { if (!target.IsActivated()) { target.SetTier( tierData ); } else { target.SetTargetTierDataOnQueue( tierData ); } } }
public void SetTargetTierDataOnQueue(TargetTierData tierData) { thisTargetTierDataOnQueue = tierData; }
public void SetTier(TargetTierData tierData) { thisShootingTargetAdaptor.SetMaterial(tierData.material); thisShootingTargetAdaptor.UpdateDefaultColor(); UpdateTargetData(tierData.targetData); }
public void SetTier(TargetTierData data) { thisTypedAdaptor.SetMaterial(data.material); }