Esempio n. 1
0
        public static List <Texture2D> LoadTexture2Sinking(ShipModel_Defender model, bool isRepair)
        {
            List <Texture2D> list = new List <Texture2D>();

            list.Add(LoadTexture(model.GetGraphicsMstId(), model.DamagedFlgBefore));
            list.Add(LoadTexture(model.GetGraphicsMstId(), (!isRepair) ? model.DamagedFlgAfterRecovery : model.DamagedFlgAfterRecovery));
            return(list);
        }
Esempio n. 2
0
        public static Vector3 GetShipOffsPos(ShipModel_Defender model, DamageState_Battle damageState, MstShipGraphColumn iColumn)
        {
            if (model == null)
            {
                return(Vector3.zero);
            }
            bool isDamaged = false;

            if (damageState == DamageState_Battle.Tyuuha || damageState == DamageState_Battle.Taiha || damageState == DamageState_Battle.Gekichin)
            {
                isDamaged = true;
            }
            return(GetShipOffsPos(model.GetGraphicsMstId(), model.IsFriend(), isDamaged, iColumn));
        }
Esempio n. 3
0
 public static Texture2D LoadTexture2Restore(ShipModel_Defender defender)
 {
     return(LoadTexture(defender.GetGraphicsMstId(), defender.DamagedFlgAfterRecovery));
 }
Esempio n. 4
0
 public static Texture2D LoadTexture(ShipModel_Defender model, bool isAfter)
 {
     return(LoadTexture(model.GetGraphicsMstId(), (!isAfter) ? model.DamagedFlgBefore : model.DamagedFlgAfter));
 }