Ver Fonte

修改了一些Bullet脚本中的修饰符

Callum há 4 meses atrás
pai
commit
c7eed391e5
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      ActionTowerDefense/Assets/Scripts/Bullet.cs

+ 2 - 2
ActionTowerDefense/Assets/Scripts/Bullet.cs

@@ -89,7 +89,7 @@ public class Bullet : MonoBehaviour
         }
     }
 
-    public void BeShoot(Character own, Vector3 shootPos, Vector3 dir, bool aim = false, bool alwaysTrack = false, Character target = null)
+    public virtual void BeShoot(Character own, Vector3 shootPos, Vector3 dir, bool aim = false, bool alwaysTrack = false, Character target = null)
     {
         transform.position = shootPos;
         transform.right = -dir;
@@ -213,7 +213,7 @@ public class Bullet : MonoBehaviour
         }
     }
 
-    private void BeHitEffect(Collider other, BeHitTrigger bht)
+    protected void BeHitEffect(Collider other, BeHitTrigger bht)
     {
         if (effect)
         {