new bool detect() { Collider2D[] tar = Collide.AreaGetCollideByTag(this.locPos, this.detectRadius, Collide.Method.Circle, "Player"); if (tar.Length != 0) { return(true); } return(false); }
// return whether player touch this teleporter new bool detect() { tar = Collide.AreaGetCollideByTag(this.transform.position, this.detectRadius, Collide.Method.Circle, "Player"); if (tar.Length != 0) { return(true); } return(false); }