コード例 #1
0
    new bool detect()
    {
        Collider2D[] tar = Collide.AreaGetCollideByTag(this.locPos, this.detectRadius, Collide.Method.Circle, "Player");

        if (tar.Length != 0)
        {
            return(true);
        }
        return(false);
    }
コード例 #2
0
    // 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);
    }