part2 Enemy been completed

This commit is contained in:
czbdw
2024-10-25 23:45:19 +08:00
parent 26e38348ab
commit 5a30325022
6 changed files with 1150 additions and 2330 deletions

View File

@@ -48,8 +48,10 @@ namespace Game.Component.SceneProp
public void OnTriggerEnterAction (Collider2D other)
{
Debug.Log("aaaaaaaaaaaaa");
if (other.gameObject.CompareTag ("Enemy"))
{
Debug.Log("bbbbbbbbbb");
var entity = other.gameObject.GetComponent<EnemyEntity> ();
OnSubEnemySpeed (entity , this._buffSpeedOffset , this._buffDuration);
}