public void StateEnter() { Debug.LogError("进入move状态"); fish = (owner as NewCatchFish_fishBase); fish.currentPathIndex = 0; fish.transform.position = new Vector3(fish.fishPath.fishPoint[0].x, fish.fishPath.fishPoint[0].y, 0); }
public void StateEnter() { fish = (owner as NewCatchFish_fishBase); var ani = fish.GetComponent <Animator>(); if (ani != null) { ani.SetInteger("state", 1); //切换死亡状态 } timer = 0f; }