/// <summary> /// 当进入机关的时候, 有一些机关,有进入和离开的状态,这里我不好判断了 /// </summary> /// <param name="c">C.</param> public override void OnEnterTrick(ICharacter c) { this.IsCollison = true; GetComponent<Collider> ().enabled = false; _npcAnimation.Play ("npc00_hurdle01_cheer"); npcTime = Time.time; m_CDTime = RestoreTime; c.Plain (0); }