예제 #1
0
 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);
 }
예제 #2
0
        public void StateEnter()
        {
            fish = (owner as NewCatchFish_fishBase);
            var ani = fish.GetComponent <Animator>();

            if (ani != null)
            {
                ani.SetInteger("state", 1);
                //切换死亡状态
            }
            timer = 0f;
        }