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(); }