<pre lang="c#">
void OnTriggerEnter2D (Collider2D other) { if(other.gameObject.CompareTag("policeFootCol")) { moveScript.WalkSpeed = 0f; SkelAnim.state.SetAnimation(0,attack,true); } else if (PoliceScript.FootStopperPolice.activeSelf == false) { moveScript.WalkSpeed = 1f; SkelAnim.state.SetAnimation(0,walk,true); }
if (state == State.ATTACKING && currentTarget && !currentTarget.activeSelf) { walking(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)