Browse Source

修复成就描边Bug

LiuQilin 8 years ago
parent
commit
7c73f58348

+ 7 - 0
Assets/Script/Manage/ManaAchieve.cs

@@ -287,6 +287,8 @@ public class Achieve
 
         Button.image.material = Shortcut.GrayMat;
 
+        ManaAchieve.UpdateHint();
+
 
         List<object> objList = new List<object>();
         
@@ -490,6 +492,11 @@ public class ManaAchieve : Regist
 
         TweenOutline tween = ManaReso.Get<Outline>("C_Achieve").GetTweenOutline();
 
+        if (tween == null)
+        {
+            return;
+        }
+
         foreach (var kv in AchieveDic)
         {
             if (kv.Value.Complete)

+ 16 - 16
Assets/Script/Manage/ManaAnim.cs

@@ -1430,7 +1430,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1444,7 +1444,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1458,7 +1458,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1472,7 +1472,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1487,7 +1487,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1502,7 +1502,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1516,7 +1516,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1530,7 +1530,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1544,7 +1544,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1558,7 +1558,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1572,7 +1572,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1586,7 +1586,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1601,7 +1601,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1615,7 +1615,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1629,7 +1629,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 
@@ -1643,7 +1643,7 @@ public class ManaAnim : Regist
         }
         else
         {
-            throw new Exception();
+            return null;
         }
     }
 

+ 1 - 1
Assets/Script/Tool/Auxiliary.cs

@@ -125,7 +125,7 @@ public class Auxiliary : Regist
 
         if (Input.GetKeyDown(KeyCode.Z))
         {
-            //ManaTutorial.TutorialB = true;
+            //ManaCenter.Coin += 10000000;
         }
 
         if (Input.GetKeyDown(KeyCode.X))

BIN
ProjectSettings/GraphicsSettings.asset