예제 #1
0
    void OnDrawGizmosSelected()
    {
        if (!enabled)
        {
            return;
        }

        if (ShootPlayerPath != null)
        {
            ShootPlayerPath.DrawPath();
        }
    }
    void OnDrawGizmosSelected()
    {
        if (!enabled)
        {
            return;
        }

        Transform parTran = transform.parent;

        if (parTran == null)
        {
            return;
        }

        CartoonShootPlayerPath pathScript = parTran.GetComponent <CartoonShootPlayerPath>();

        pathScript.DrawPath();
    }