예제 #1
0
        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
                );
        }
예제 #2
0
 void SetAllTargetTier(
     TargetTierData tierData
     )
 {
     foreach (IShootingTarget target in thisSceneObjects)
     {
         if (!target.IsActivated())
         {
             target.SetTier(
                 tierData
                 );
         }
         else
         {
             target.SetTargetTierDataOnQueue(
                 tierData
                 );
         }
     }
 }
예제 #3
0
 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);
 }
예제 #6
0
 public void SetTier(TargetTierData data)
 {
     thisTypedAdaptor.SetMaterial(data.material);
 }